[The bug has been reported to the Debian BTS before:
http://bugs.debian.org/491137]

On s390, when using -O2, the attached code fails to throw an exception,
apparently because it does not re-evaluate the value of a variable. If the
variable is marked volatile, the code works as expected.

Best,
Michael


-- 
           Summary: [4.3 Regression] Value of variable is not read again
           Product: gcc
           Version: 4.3.3
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: mt at debian dot org
 GCC build triplet: s390-unknown-linux-gnu
  GCC host triplet: s390-unknown-linux-gnu
GCC target triplet: s390-unknown-linux-gnu


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39115

Reply via email to