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.