This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/85128] Local scope type(def) falsely assumed to change meaning of outer scope type(def)


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!

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]