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]

Function gets assigned VAR_DECL instead of FUNC_DECL


Hi,

if you compile the following example with "g++ -c -save-temps" and look at the
resulting .s file, you will notice corrupted assembler labels. I think this is
because the function "without_type" gets assigned VAR_DECL in
cp/decl.c/grokdeclarator, compared to FUNC_DECL for the function "with_type". It
seems that the code that is trying to default "without_type" to int has a bug.

Franz.

extern "C" {
 without_type(int,int);
 void with_type(int,int);
}



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