https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85128
--- Comment #10 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!