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

Reply via email to