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

jakub at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Thu Mar 19 15:08:16 GMT 2020


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

--- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
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?


More information about the Gcc-bugs mailing list