c/5448: gcc emits internal error (unrecognized insn)

rodrigc@gcc.gnu.org rodrigc@gcc.gnu.org
Mon Jan 21 16:54:00 GMT 2002


Synopsis: gcc emits internal error (unrecognized insn)

State-Changed-From-To: open->analyzed
State-Changed-By: rodrigc
State-Changed-When: Mon Jan 21 16:54:04 2002
State-Changed-Why:
    Crash reproduced on gcc 3.0.3 and gcc 3.1 mainline.
    
    The line which is causing the problem is:
    
     section[pWrd - sCfgFileLine - 1] = '\0'; 
    
    where the variables are:
    char *section;
    char *pWrd;
    char sCfgFileLine[8192];
    
    What exactly are you trying to do in this piece of
    code?  The compiler should not crash, but this code
    looks suspect.

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



More information about the Gcc-bugs mailing list