This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/11862] [3.4 Regression] ICE on illegal code, in cp_parser_template_id, at cp/parser.c:7515
- From: "bangerth at dealii dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 11 Aug 2003 14:54:25 -0000
- Subject: [Bug c++/11862] [3.4 Regression] ICE on illegal code, in cp_parser_template_id, at cp/parser.c:7515
- References: <20030809035908.11862.gccbugs@contacts.eelis.net>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11862
------- Additional Comments From bangerth at dealii dot org 2003-08-11 14:54 -------
While the error message can certainly be improved, the origin is the following (I guess):
gcc looks at y and realizes that this is not a type. It then thinks that it might be
a variable, in which case the sequence
type name (name)
(read: void x (y) )
would be the declaration of a variable with a given initializer (think: constructor call). But
variables of type void are not allowed, which is what the message says).
W.