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

--- Comment #2 from Jonathan Wakely <redi at gcc dot gnu.org> ---
This is almost certainly invalid code. Implementations are not required to
enforce the complete type precondition, so "other compilers don't reject it"
doesn't mean much. If the code has undefined behaviour then it's conforming to
accept it silently, or to reject it like this.

I haven't analyzed it in detail yet though.

Reply via email to