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]

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


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.


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