[Bug c++/94175] [10 Regression] Passing constexpr empty class variable to function since r10-599

jason at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Fri Mar 20 04:04:51 GMT 2020


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

Jason Merrill <jason at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|---                         |FIXED

--- Comment #4 from Jason Merrill <jason at gcc dot gnu.org> ---
(In reply to Jakub Jelinek from comment #2)
> But for #c1 it is just a missed-optimization, while if the passing of a
> constexpr var to a function isn't an ODR use, isn't it then a standard
> violation that we aren't optimizing the variable read into its value?

True, but the fix is the same.


More information about the Gcc-bugs mailing list