This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: c++/4980: -pedantic leads to parse error at strange place
- From: aoliva at gcc dot gnu dot org
- To: acfb at gmx dot de, gcc-bugs at gcc dot gnu dot org, gcc-gnats at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, nobody at gcc dot gnu dot org
- Date: 2 Dec 2001 09:09:36 -0000
- Subject: Re: c++/4980: -pedantic leads to parse error at strange place
Synopsis: -pedantic leads to parse error at strange place
State-Changed-From-To: open->closed
State-Changed-By: aoliva
State-Changed-When: Sun Dec 2 01:09:36 2001
State-Changed-Why:
GCC is correct. The keyword `typename' is required in Standard C++ before template-dependent qualified type names. Without -pedantic, GCC attempts to accept an implied `typename' keyword where it makes sense to do so, but -pedantic requests it to stick to the Standard.
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&pr=4980&database=gcc