c/9818: ICE after syntax error in C99 mode

Falk Hueffner falk.hueffner@student.uni-tuebingen.de
Sun Feb 23 16:56:00 GMT 2003


>Number:         9818
>Category:       c
>Synopsis:       ICE after syntax error in C99 mode
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          ice-on-illegal-code
>Submitter-Id:   net
>Arrival-Date:   Sun Feb 23 16:56:00 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator:     Falk Hueffner
>Release:        3.4 20030213 (experimental)
>Organization:
>Environment:
System: Linux juist 2.5.59 #4 Sat Jan 18 12:46:41 CET 2003 alpha unknown unknown GNU/Linux
Architecture: alpha

	
host: alphaev68-unknown-linux-gnu
build: alphaev68-unknown-linux-gnu
target: alphaev68-unknown-linux-gnu
configured with: ../configure --with-gcc-version-trigger=/src/gcc-2003.02.13.hacked/gcc/version.c --no-create --no-recursion
>Description:
~% cat bug.c 
struct graph { };
void foo(void);

void permanentize_paw_del(struct graph *g) {
    for (int j = 0; j < 4; ++j) {
       if (foo()                /* Missing ) here */
           continue;
        g->foo = 0;             /* non-existent struct member */
    }
}
% gcc -std=c99 -c bug.c    
bug.c: In function `permanentize_paw_del':
bug.c:7: error: syntax error before "continue"
bug.c:8: error: structure has no member named `foo'
bug.c:9: internal compiler error: in genrtl_compound_stmt, at c-semantics.c:732
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://www.gnu.org/software/gcc/bugs.html> for instructions.
>How-To-Repeat:
	
>Fix:
	
>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the Gcc-bugs mailing list