[prev in list] [next in list] [prev in thread] [next in thread] 

List:       gcc-bugs
Subject:    [Bug c++/34531] local typedef conflicts with global definition of a type having the same name
From:       "steffen at sdaoden dot eu" <gcc-bugzilla () gcc ! gnu ! org>
Date:       2018-03-31 21:01:31
Message-ID: bug-34531-4-zIRrrWrcal () http ! gcc ! gnu ! org/bugzilla/
[Download RAW message or body]

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!=
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic