https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101557
Jakub Jelinek <jakub at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jakub at gcc dot gnu.org --- Comment #1 from Jakub Jelinek <jakub at gcc dot gnu.org> --- clang++ rejects it similarly. pr101557.C:40:16: error: constexpr variable 'size3' must be initialized by a constant expression constexpr auto size3 = mysize(a); ^ ~~~~~~~~~ pr101557.C:22:45: note: read of temporary is not allowed in a constant expression outside the expression that created the temporary Wonder if this isn't related to the recently posted PR100976 patch.