------- Comment #4 from matz at gcc dot gnu dot org 2006-05-24 18:26 ------- Andrew, I know that this is undefined. Let us ignore this issue for this bug. I tried some time to come up with two nicer functions which still get inlined but are not optimized too early to hide the bug, but failed. Probably the testcase can be made using __builtin_offset, and then switching off certain tree-optimizer passes, but I didn't try. Debugging combine was painful enough :-)
-- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27761