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]
Other format: [Raw text]

Re: c/7353: Compiler dies on known working code (as of gcc 3.0)


Hi again,

sorry, I wasn't aware that "typedef A = 0;" is a valid gcc extension.
So, your code was in fact valid (although only for gcc) and the bug is an
ice-on-legal-code for 3.1.x, 3.2 and the main trunk (3.3 20020816).
Because it's a regression, it should be marked high priority.

BTW, for the code "typedef A = 0;" the error message is

bug.c:1: Internal compiler error in make_decl_rtl, at varasm.c:839
Please submit a full bug report, [etc.]

For "void foo () { typedef A = 0; }" I get

bug.c:1: Internal compiler error in gen_typedef_die, at dwarf2out.c:11035
Please submit a full bug report, [etc.]

instead (if I compile the code with "-g" enabled).

Greetings,
Volker Reichelt

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=7353



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