This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Function gets assigned VAR_DECL instead of FUNC_DECL
- To: egcs-bugs at cygnus dot com
- Subject: Function gets assigned VAR_DECL instead of FUNC_DECL
- From: Franz Sirl <Franz dot Sirl-kernel at lauterbach dot com>
- Date: Thu, 11 Jun 1998 12:16:33 +0200
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);
}