c++/9216: [3.2/3.4 regression] ICE on incorrect code (template-namespace related)

reichelt@igpm.rwth-aachen.de reichelt@igpm.rwth-aachen.de
Mon Jan 13 05:17:00 GMT 2003


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



More information about the Gcc-bugs mailing list