[Bug c++/11862] [3.4 Regression] ICE on illegal code, in cp_parser_template_id, at cp/parser.c:7515

bangerth at dealii dot org gcc-bugzilla@gcc.gnu.org
Mon Aug 11 14:54:00 GMT 2003


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.



More information about the Gcc-bugs mailing list