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]

Internal compiler error with redefinition of a function.


Hi,

If I have a C file with the same function name in it twice and pass -ggdb as
an option I get the following error.

test.c:6: redefinition of `func1'
test.c:3: `func1' previously defined here
../../gcc/dwarf2out.c:8165: Internal compiler error in function gen_subprogram_die

The test code is

int func1()
{
}
int func1()
{
}

I realize it's a coding error, I was just surprised to see the Internal compiler error message so I'd thought I'd report it. Thanks, I get alot of use out
of gcc.

I'm running gcc

Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/egcs-2.91.66/specs
gcc version egcs-2.91.66 19990314/Linux (egcs-1.1.2 release)

Kerry

-- 
Windows 95: n.
 32 bit extensions and a graphical shell for a 16 bit patch to an
 8 bit operating system originally coded for a 4 bit microprocessor,
 written by a 2 bit company, that can't stand 1 bit of competition.


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