This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: c++/6023...


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]