[Bug 644615] New: gcc internal compiler error with -ansi
https://bugzilla.novell.com/show_bug.cgi?id=644615 https://bugzilla.novell.com/show_bug.cgi?id=644615#c0 Summary: gcc internal compiler error with -ansi Classification: openSUSE Product: openSUSE 11.3 Version: Final Platform: i686 OS/Version: openSUSE 11.3 Status: NEW Severity: Normal Priority: P5 - None Component: Development AssignedTo: pth@novell.com ReportedBy: christoph.pesch@siemens.com QAContact: qa@suse.de Found By: --- Blocker: --- User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.10) Gecko/20100914 SUSE/3.6.10-0.3.1 Firefox/3.6.10 Compiling the following code with gcc option -ansi leads to an internal compiler error: void crash() { double l[4]; if((l[0]+l[2]) && (l[1]+l[3])){ } } pesch@kstbu027[~/src/c/test]284: gcc -ansi -c compiler_error.c compiler_error.c: In function 'crash': compiler_error.c:3:3: internal compiler error: in build_binary_op, at c-typeck.c:9845 Please submit a full bug report, with preprocessed source if appropriate. See <http://bugs.opensuse.org/> for instructions. pesch@kstbu027[~/src/c/test]286: gcc --version gcc (SUSE Linux) 4.5.0 20100604 [gcc-4_5-branch revision 160292] Copyright (C) 2010 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. The code compiles fine without -ansi or if code is changed into void crash() { double l[4]; if((l[0]+l[2]) != 0.0 && (l[1]+l[3]) != 0.0){ } } Reproducible: Always Steps to Reproduce: 1.Save code snippet given above to file compiler_error.c 2.gcc -ansi -c compiler_error.c 3. Actual Results: compiler_error.c: In function 'crash': compiler_error.c:3:3: internal compiler error: in build_binary_op, at c-typeck.c:9845 Please submit a full bug report, with preprocessed source if appropriate. See <http://bugs.opensuse.org/> for instructions. Expected Results: No internal compiler error. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=644615 https://bugzilla.novell.com/show_bug.cgi?id=644615#c Philipp Thomas <pth@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |pth@novell.com AssignedTo|pth@novell.com |rguenther@novell.com -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=644615 https://bugzilla.novell.com/show_bug.cgi?id=644615#c1 Richard Guenther <rguenther@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |UPSTREAM --- Comment #1 from Richard Guenther <rguenther@novell.com> 2010-10-11 14:20:38 UTC --- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45969 -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com