c++/6023...

Nathanael Nerode neroden@twcny.rr.com
Mon Jan 20 04:49:00 GMT 2003


With the new parser, gives the overused message
/home/neroden/6023.cxx:20: error: expected primary-expression

which is not very helpful.  The original testcase gives worse errors:
 vektor<V>::vektor(V)
/home/neroden/test.cxx: At global scope:
/home/neroden/test.cxx:20: error: expected primary-expression
/home/neroden/test.cxx:20: error: expected `)'
/home/neroden/test.cxx:21: error: expected expected `;'
/home/neroden/test.cxx:21: error: data member `do_calc' cannot be a member
   template
...and more.

'expected expected' is not appropriate, ever, incidentally; someone should 
file a bug about that but I'm feeling too lazy.



More information about the Gcc-bugs mailing list