This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: c++/7218: incorrect 'implicit typename' warnings
- From: lerdsuwa at gcc dot gnu dot org
- To: gcc-bugs at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, ndry at mdcplus dot com, nobody at gcc dot gnu dot org
- Date: 11 Jul 2002 14:50:01 -0000
- Subject: Re: c++/7218: incorrect 'implicit typename' warnings
- Reply-to: lerdsuwa at gcc dot gnu dot org, gcc-bugs at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, ndry at mdcplus dot com, nobody at gcc dot gnu dot org, gcc-gnats at gcc dot gnu dot org
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