[Bug c++/34531] local typedef conflicts with global definition of a type having the same name
steffen at sdaoden dot eu
gcc-bugzilla@gcc.gnu.org
Sat Mar 31 21:01:00 GMT 2018
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=34531
--- Comment #7 from Steffen Nurpmeso <steffen at sdaoden dot eu> ---
Hello Andrew Pinski!
Ok i have to apologize for not searching in Bugzilla very carefully it seems.
I see now, indeed i was -- even if that sounds inconceivable -- under the
impression that the error message
typedef class SF::Sys::Coll::AutoToolbox<T>
SF::Sys::Coll::TypeTraits<T>::AutoToolbox
reflected the code, but that is, again indeed, not true, so gcc is right!
template<class T, boolean OWNS=TypeTraits<T>::ownguess>
class CPDict
pub typedef typename TTraits::AutoToolbox TAutoToolbox;
template<class T>
class TypeTraits
pub typedef AutoToolbox<Type> AutoToolbox;
(but but but: mysteriously fully references the non-auto Toolbox!)
Sorry for the noise!
More information about the Gcc-bugs
mailing list