------- 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