LWG-4113 Disallow has_unique_object_representations<Incomplete[]>
We need to report this to:
so they can reject this code:
#include <print>
#include <type_traits>
using namespace std;
struct Incomplete;
int main() {
println("{}", has_unique_object_representations_v<Incomplete[]>);
}
C:\Temp>cl /EHsc /nologo /W4 /std:c++latest /MTd /Od meow.cpp && meow
meow.cpp
false
C:\Temp>clang-cl /EHsc /nologo /W4 /std:c++latest /MTd /Od meow.cpp && meow
false
C:\Temp>cl /EHsc /nologo /W4 /std:c++latest /MTd /Od /c /BE meow.cpp
meow.cpp
C:\Temp>
LWG-4113 Disallow
has_unique_object_representations<Incomplete[]>We need to report this to:
so they can reject this code: