c++/6023...

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


The following reply was made to PR c++/6023; it has been noted by GNATS.

From: Nathanael Nerode <neroden@twcny.rr.com>
To: gcc-gnats@gcc.gnu.org, gcc-bugs@gcc.gnu.org, nobody@gcc.gnu.org,
   Klaus.Kretschel@dlr.de
Cc:  
Subject: Re: c++/6023...
Date: Sun, 19 Jan 2003 23:48:08 -0500

 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-prs mailing list