[Bug c++/90313] [7/8/9/10 Regression] Is an assignment elided with gcc7.3 -O2?

rguenth at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Fri May 3 08:35:00 GMT 2019


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

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P3                          |P2
             Status|UNCONFIRMED                 |NEW
      Known to work|                            |6.5.0
           Keywords|                            |needs-bisection, wrong-code
   Last reconfirmed|                            |2019-05-03
     Ever confirmed|0                           |1
            Summary|Is an assignment elided     |[7/8/9/10 Regression] Is an
                   |with gcc7.3 -O2?            |assignment elided with
                   |                            |gcc7.3 -O2?
   Target Milestone|---                         |7.5
      Known to fail|                            |7.1.0, 8.3.0, 9.0

--- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> ---
I can consistently reproduce the wrong result with GCC 7+ at -O2 but not at -O0
(or with -fno-elide-constructors).


More information about the Gcc-bugs mailing list