This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c/51527] ICE: Segmentation fault: 'convert_to_integer' enters infinite recursion


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 *


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]