Enumeration declarations that were instantiated from an enumeration
within a template now have a link back to the enumeration from which
they were instantiated. This means that we can now find the
instantiation of an anonymous enumeration.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@72482 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/test/SemaTemplate/instantiate-declref.cpp b/test/SemaTemplate/instantiate-declref.cpp
index 2512df1..cceaed0 100644
--- a/test/SemaTemplate/instantiate-declref.cpp
+++ b/test/SemaTemplate/instantiate-declref.cpp
@@ -9,8 +9,7 @@
typedef T type;
static enum K1 { K1Val = sizeof(T) } Kind1;
- // FIXME: Remove the name K2, below
- static enum K2 { K2Val = sizeof(T)*2 } Kind2;
+ static enum { K2Val = sizeof(T)*2 } Kind2;
void foo() {
K1 k1 = K1Val;