otto@lonkero:~/code$ gcc bug.c -Wall bug.c: In function ‘main’: bug.c:5: error: void value not ignored as it ought to be bug.c:5: error: void value not ignored as it ought to be bug.c:5: confused by earlier errors, bailing out Preprocessed source stored into /tmp/ccoFNCjw.out file, please attach this to your bugreport. otto@lonkero:~/code$ cat /tmp/ccoFNCjw.out // /usr/lib/gcc/i486-linux-gnu/4.4.1/cc1 -quiet bug.c -D_FORTIFY_SOURCE=2 -quiet -dumpbase bug.c -mtune=generic -march=i486 -auxbase bug -Wall -fstack-protector -o - -frandom-seed=0 # 1 "bug.c" # 1 "" # 1 "" # 1 "bug.c" int main(void) { int a=1; if((a==1) ? (void) (0) : 1); return 0; } -- Summary: crash on invalid code if((a==1) ? (void) (0) : 1) Product: gcc Version: 4.4.1 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: soundis at infa dot fi http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44982