This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/51527] ICE: Segmentation fault: 'convert_to_integer' enters infinite recursion
- From: "gjl at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 05 Mar 2012 17:31:49 +0000
- Subject: [Bug c/51527] ICE: Segmentation fault: 'convert_to_integer' enters infinite recursion
- Auto-submitted: auto-generated
- References: <bug-51527-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51527
--- Comment #2 from Georg-Johann Lay <gjl at gcc dot gnu.org> 2012-03-05 17:31:49 UTC ---
Here is a smaller test case:
__int24 add3 (__int24 a)
{
return a + 0x10000;
}
It works if
-- the constant is cast with (__int24) 0x10000
-- the constant is smaller than 0x10000
-- the operation is not +, - or *