[Bug c++/30060] Error/warning on invalid code (duplicate identifier for enum/class) should be more specific
pinskia at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Sun Dec 3 18:56:00 GMT 2006
------- Comment #1 from pinskia at gcc dot gnu dot org 2006-12-03 18:56 -------
Actually I think the error is clear once you remember * is also multiplication.
so we have
foo * a = new foo;
Also I doubt we can improve the error message here.
Cameau online gives basically the same error message:
"ComeauTest.c", line 10: error: identifier "a" is undefined
foo *a=new foo;
^
"ComeauTest.c", line 10: error: expected a type specifier
foo *a=new foo;
^
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30060
More information about the Gcc-bugs
mailing list