http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60578
--- Comment #3 from Zhendong Su <su at cs dot ucdavis.edu> --- > (because (c ^ 0L) < -1 is true in 64-bit, so the code returns) Or perhaps not, as -1 should actually be promoted to signed long, so the comparison becomes 0L < -1L, and is thus false and triggers the undefined behavior?