This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: c++/9216: [3.2/3.4 regression] ICE on incorrect code (template-namespace related)
- From: reichelt at igpm dot rwth-aachen dot de
- To: O dot Kullmann at Swansea dot ac dot uk, gcc-bugs at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, nobody at gcc dot gnu dot org
- Date: 7 Jan 2003 14:41:10 -0000
- Subject: Re: c++/9216: [3.2/3.4 regression] ICE on incorrect code (template-namespace related)
- Reply-to: reichelt at igpm dot rwth-aachen dot de, O dot Kullmann at Swansea dot ac dot uk, gcc-bugs at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, nobody at gcc dot gnu dot org, gcc-gnats at gcc dot gnu dot org
Old Synopsis: Segmentation fault on incorrect code (template-namespace related)
New Synopsis: [3.2/3.4 regression] ICE on incorrect code (template-namespace related)
State-Changed-From-To: open->analyzed
State-Changed-By: reichelt
State-Changed-When: Tue Jan 7 06:41:09 2003
State-Changed-Why:
Confirmed.
gcc 2.95.x and the 3.3 branch emit the following error messages:
gcc 2.95.x:
bug.cc:6: invalid use of `template <class T> N::C<T>'
gcc 3.3-20021230:
bug.cc:6: error: invalid use of `template<class T> class N::C'
With gcc 3.0.x, 3.1.x, 3.2.x we get an ICE which is clearly a regression
on the 3.2 branch.
With the new parser we get the following error message:
bug.cc:6: error: expected primary-expression
which is less descriptive than the error message in gcc 2.95.x, 3.3 branch.
IMHO this is also a regression (although not a very severe one).
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=9216