Re: [C++ patch] for c++/37140

2014-01-31 Thread Fabien Chêne
2014-01-28 Jason Merrill ja...@redhat.com: On 01/27/2014 04:28 PM, Fabien Chêne wrote: + if (DECL_DEPENDENT_P (decl) USING_DECL_TYPENAME_P (decl)) +{ + /* We have found a type introduced by a using +declaration at class scope that refers to a dependent +type. +

Re: [C++ patch] for c++/37140

2014-01-31 Thread Jason Merrill
OK, thanks. Jason

[C++ patch] for c++/37140

2014-01-27 Thread Fabien Chêne
Hi, We fail here to create a typename_type on dependent using declarations. In fact, facing a USING_DECLs on spotted places, either we want to strip non-dependent USING_DECLs or we want to create a typename_type. The attached patch simply propagates the change made to fix c++/14258 through

Re: [C++ patch] for c++/37140

2014-01-27 Thread Jason Merrill
On 01/27/2014 04:28 PM, Fabien Chêne wrote: + if (DECL_DEPENDENT_P (decl) USING_DECL_TYPENAME_P (decl)) +{ + /* We have found a type introduced by a using +declaration at class scope that refers to a dependent +type. + +using typename :: [opt]