cp_finish_decl called with bogus asmspec_tree

Franz Sirl Franz.Sirl-kernel@lauterbach.com
Fri Jun 5 03:55:00 GMT 1998


Hi,

in presence of warnings like

HTMLView.cpp:91: warning: ANSI C++ forbids declaration `' with no type
HTMLView.cpp:91: abstract declarator `int' used as declaration

cp_finish_decl is called with a bogus asmspec_tree. This causes corrupted
assembler labels to be produced later on as reported in
< http://www.cygnus.com/ml/egcs-bugs/1998-May/0621.html >.

As far I could debug it, the corresponding call to cp_finish_decl happens
at line 1848 of parse.y (eventually it could be the call a line 1826).

If I add the five missing void's to HTMLView.cpp compilation works fine.

Hope this helps,
Franz.





More information about the Gcc-bugs mailing list