Index: clang/include/clang/Basic/Attr.td =================================================================== --- clang/include/clang/Basic/Attr.td +++ clang/include/clang/Basic/Attr.td @@ -1686,7 +1686,7 @@ let Documentation = [ArmMveStrictPolymorphismDocs]; } -def NoUniqueAddress : InheritableAttr, TargetSpecificAttr { +def NoUniqueAddress : InheritableAttr { let Spellings = [CXX11<"", "no_unique_address", 201803>]; let Subjects = SubjectList<[NonBitField], ErrorDiag>; let Documentation = [NoUniqueAddressDocs]; Index: clang/test/SemaCXX/cxx2a-no-unique-address.cpp =================================================================== --- clang/test/SemaCXX/cxx2a-no-unique-address.cpp +++ clang/test/SemaCXX/cxx2a-no-unique-address.cpp @@ -1,5 +1,4 @@ // RUN: %clang_cc1 -std=c++2a %s -verify -triple x86_64-linux-gnu -// RUN: %clang_cc1 -std=c++2a %s -verify=unsupported -triple x86_64-windows [[no_unique_address]] int a; // expected-error {{only applies to non-bit-field non-static data members}} unsupported-warning {{unknown}} [[no_unique_address]] void f(); // expected-error {{only applies to non-bit-field non-static data members}} unsupported-warning {{unknown}}