From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1344 invoked by alias); 19 Jul 2010 00:26:51 -0000 Received: (qmail 1305 invoked by uid 48); 19 Jul 2010 00:26:39 -0000 Date: Mon, 19 Jul 2010 00:26:00 -0000 Subject: [Bug c/44982] New: crash on invalid code if((a==1) ? (void) (0) : 1) X-Bugzilla-Reason: CC Message-ID: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "soundis at infa dot fi" Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2010-07/txt/msg01896.txt.bz2 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