c/4014: gcc reports internal erro when compiling file bafio.c

rodrigc@gcc.gnu.org rodrigc@gcc.gnu.org
Fri Dec 7 17:41:00 GMT 2001


Synopsis: gcc reports internal erro when compiling file bafio.c

State-Changed-From-To: open->analyzed
State-Changed-By: rodrigc
State-Changed-When: Fri Dec  7 17:32:56 2001
State-Changed-Why:
    Reproduced in gcc 3.0.3.
    The compiler segfaults here:
    Program received signal SIGSEGV, Segmentation fault.
    0x082933cd in make_reorder_chain_1 (bb=0x841a1d0, prev=0x841a110)
        at bb-reorder.c:416
    416           next = (taken ? e_taken : e_fall)->dest;
    
    
    
    
    In gcc 3.1, the compiler does not segfault but produces
    these compilation errors:
    bafio.c: In function `ATwriteToNamedBinaryFile':
    bafio.c:1215: parse error before "u"
    bafio.c:1216: parse error before ')' token
    bafio.c:1216: `cons' undeclared (first use in this function)
    bafio.c:1216: (Each undeclared identifier is reported only once
    bafio.c:1216: for each function it appears in.)
    bafio.c:1216: parse error before '!' token
    bafio.c:1217: syntax error before '!' token
    bafio.c:1218: `__result' undeclared (first use in this function)

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



More information about the Gcc-bugs mailing list