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]

cp_finish_decl called with bogus asmspec_tree


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.




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