[Bug middle-end/69553] [6 Regression] Optimizations O1/O2 makes std::array value incorrect when passed to function

rguenth at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Thu Feb 18 14:35:00 GMT 2016


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69553

--- Comment #11 from Richard Biener <rguenth at gcc dot gnu.org> ---
Author: rguenth
Date: Thu Feb 18 14:34:59 2016
New Revision: 233520

URL: https://gcc.gnu.org/viewcvs?rev=233520&root=gcc&view=rev
Log:
2016-02-18  Richard Biener  <rguenther@suse.de>

        PR middle-end/69553
        * fold-const.c (operand_equal_p): Properly compare offsets for
        IMAGPART_EXPR and ARRAY_REF.

        * g++.dg/torture/pr69553.C: New testcase.

Added:
    trunk/gcc/testsuite/g++.dg/torture/pr69553.C
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/fold-const.c
    trunk/gcc/testsuite/ChangeLog


More information about the Gcc-bugs mailing list