Compilation of the following short program dies with Internal compiler error in dwarf2out_finish, at dwarf2out.c:12301
The bug disappears if "NUM" is replaced by "int", even though "NUM" is just a typedef for "int" /* bug2.c */ /* Last edited on 2004-12-31 14:42:34 by stolfi */ typedef int NUM; int p (int x) { auto NUM F(void); NUM F(void) { return x; } return F(); } uname -a Linux simoleo.ic.unicamp.br 2.4.20-8smp #1 SMP Thu Mar 13 16:43:01 EST 2003 i686 athlon i386 GNU/Linux gcc --version gcc (GCC) 3.2.2 20030222 (Red Hat Linux 3.2.2-5) gcc -dumpmachine i386-redhat-linux gcc -c -g -save-temps -Wall bug2.c bug2.c:13: Internal compiler error in dwarf2out_finish, at dwarf2out.c:12301 -- Summary: Internal compiler error in dwarf2out_finish, at dwarf2out.c:12301 Product: gcc Version: 3.2.2 Status: UNCONFIRMED Severity: normal Priority: P2 Component: c AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: stolfi at ic dot unicamp dot br CC: gcc-bugs at gcc dot gnu dot org GCC build triplet: i386-redhat-linux GCC host triplet: i386-redhat-linux GCC target triplet: i386-redhat-linux http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19214