]> granicus.if.org Git - clang/commit
Fix implementation of C++'s restrictions on using-declarations referring to enumerators:
authorRichard Smith <richard-llvm@metafoo.co.uk>
Thu, 5 May 2016 02:13:49 +0000 (02:13 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Thu, 5 May 2016 02:13:49 +0000 (02:13 +0000)
commit389f07bbe3fefa6147e8cbf0d05bf526e2ad1314
treea8306fa2f7f6e13926a56dbbab0dac659fcc2575
parentf47686bf3d05553e0fad7dff067c13f21df8797d
Fix implementation of C++'s restrictions on using-declarations referring to enumerators:

 * an unscoped enumerator whose enumeration is a class member is itself a class
   member, so can only be the subject of a class-scope using-declaration.

 * a scoped enumerator cannot be the subject of a class-scope using-declaration.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@268594 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Basic/DiagnosticSemaKinds.td
lib/Sema/SemaDeclCXX.cpp
test/CXX/dcl.dcl/basic.namespace/namespace.udecl/p3-cxx0x.cpp [deleted file]
test/CXX/dcl.dcl/basic.namespace/namespace.udecl/p3.cpp [new file with mode: 0644]
test/CXX/dcl.dcl/basic.namespace/namespace.udecl/p6-cxx11.cpp [moved from test/CXX/dcl.dcl/basic.namespace/namespace.udecl/p6-cxx0x.cpp with 83% similarity]
test/CXX/drs/dr4xx.cpp
test/SemaCXX/enum-scoped.cpp