c++/7218: incorrect 'implicit typename' warnings

lerdsuwa@gcc.gnu.org lerdsuwa@gcc.gnu.org
Thu Jul 11 07:50:00 GMT 2002


Synopsis: incorrect 'implicit typename' warnings

State-Changed-From-To: open->closed
State-Changed-By: lerdsuwa
State-Changed-When: Thu Jul 11 07:50:00 2002
State-Changed-Why:
    Not a bug.  AA is inside template-parameter dependent
    base class.  When parsing class B, names inside A<T>
    are not looked up.  You have to write
      template<class T>
      struct B : A<T> { typename A<T>::AA a;};

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=7218



More information about the Gcc-bugs mailing list