[Bug c++/115476] [13/14/15 Regression] __has_unique_object_representation ICE with array of uninstantiated type of unknown bound
mital at mitalashok dot co.uk
gcc-bugzilla@gcc.gnu.org
Thu Jun 13 15:56:45 GMT 2024
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115476
--- Comment #5 from Mital Ashok <mital at mitalashok dot co.uk> ---
Sorry, I misread the cppreference quote. Though it should be ill-formed instead
of UB I think.
GCC also crashes on this invalid code:
class Foo;
static_assert(__has_unique_object_representations(Foo[]));
More information about the Gcc-bugs
mailing list