User account creation filtered due to spam.

Bug 21709 - [3.4 regression] ICE on compile-time complex NaN
Summary: [3.4 regression] ICE on compile-time complex NaN
Alias: None
Product: gcc
Classification: Unclassified
Component: middle-end (show other bugs)
Version: 3.4.4
: P2 normal
Target Milestone: 3.4.5
Assignee: Not yet assigned to anyone
Keywords: ice-on-valid-code
Depends on:
Reported: 2005-05-22 16:07 UTC by Debian GCC Maintainers
Modified: 2005-05-26 06:11 UTC (History)
1 user (show)

See Also:
Known to work: 3.3.3
Known to fail: 3.4.0 4.0.0 4.1.0
Last reconfirmed: 2005-05-22 16:08:39


Note You need to log in before you can comment on or make changes to this bug.
Description Debian GCC Maintainers 2005-05-22 16:07:30 UTC
[ forwarded from ]

falk@juist:/tmp% cat test.c
double _Complex f(void) { return 1.0iF / 0.0; }

falk@juist:/tmp% gcc-3.4 -c test.c 
test.c: In function `f':
test.c:1: internal compiler error: Segmentation fault

Problem not present in 4.0.
Comment 1 Andrew Pinski 2005-05-22 16:08:39 UTC
Comment 3 CVS Commits 2005-05-26 05:51:37 UTC
Subject: Bug 21709

CVSROOT:	/cvs/gcc
Module name:	gcc
Changes by:	2005-05-26 05:51:22

Modified files:
	gcc            : ChangeLog fold-const.c 
	gcc/testsuite  : ChangeLog 
Added files:
	gcc/testsuite/gcc.dg: pr21709-1.c 

Log message:
	PR middle-end/21709
	* fold-const.c (const_binop): Check for division by zero during
	complex division.
	* gcc.dg/pr21709-1.c: New test case.


Comment 4 roger 2005-05-26 06:11:45 UTC
This should now be fixed on the gcc-3_4-branch (and the same patch has been
applied to mainline to prevent this ever causing problems in future).