http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55369
--- Comment #1 from John David Anglin <danglin at gcc dot gnu.org> 2012-11-18 17:16:53 UTC --- Created attachment 28725 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=28725 Reduced testcase Problem occurs because of gcc_assert expression checking. If disabled, the generated code seems correct. /home/gnu64/gcc/gcc-4.6/bin/../libexec/gcc/hppa64-hp-hpux11.11/4.6.3/cc1plus -fpreprocessed xxx.ii -quiet -dumpbase xxx.c -dA -auxbase-strip xxx.o -g -O1 -Wextra -Wall -Wwrite-strings -Wcast-qual -Wmissing-format-attribute -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -Wno-error -version -fno-exceptions -fno-rtti -fasynchronous-unwind-tables -fno-common -o xxx.s