https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102095
--- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> --- Yes, it's undefined. See PR libstdc++/70692 There is a C++ standard proposal to make this ill-formed: https://wg21.link/p0932
redi at gcc dot gnu.org via Gcc-bugs Tue, 31 Aug 2021 01:15:16 -0700
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102095
--- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> --- Yes, it's undefined. See PR libstdc++/70692 There is a C++ standard proposal to make this ill-formed: https://wg21.link/p0932