Skip to content

LWG-4113 Disallow has_unique_object_representations<Incomplete[]> #5124

Description

LWG-4113 Disallow has_unique_object_representations<Incomplete[]>

We need to report this to:

  • C1XX
  • Clang
  • EDG

so they can reject this code:

C:\Temp>type meow.cpp
#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>

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    LWGLibrary Working Group issuecompilerCompiler work involved

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions