diff options
author | Aaron Ballman <aaron@aaronballman.com> | 2012-07-19 03:12:23 +0000 |
---|---|---|
committer | Aaron Ballman <aaron@aaronballman.com> | 2012-07-19 03:12:23 +0000 |
commit | f81678707e936cf04a2a9f7c21d51a77ffc1f6c9 (patch) | |
tree | 1907fba588b95b215027a243394adc22d4d19de5 /test/SemaCXX/enum-scoped.cpp | |
parent | 7c30427afb4c2171ee4d336477f5e4d7c277ccb4 (diff) |
Relaxed enumeration constant naming rules for scoped enumerators so they no longer emit a diagnostic when the enumeration's name matches that of the class. Fixes PR13128.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@160490 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/SemaCXX/enum-scoped.cpp')
-rw-r--r-- | test/SemaCXX/enum-scoped.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/SemaCXX/enum-scoped.cpp b/test/SemaCXX/enum-scoped.cpp index ebe9245358..a1f911d79d 100644 --- a/test/SemaCXX/enum-scoped.cpp +++ b/test/SemaCXX/enum-scoped.cpp @@ -245,3 +245,10 @@ namespace test10 { int m = g<int>(); int n = g<short>(); // expected-note {{here}} } + +namespace pr13128 { + // This should compile cleanly + class C { + enum class E { C }; + }; +} |