[cfe-commits] r94333 - /cfe/trunk/lib/Sema/SemaTemplateInstantiateDecl.cpp
John McCall
rjmccall at apple.com
Sat Jan 23 14:38:00 PST 2010
Author: rjmccall
Date: Sat Jan 23 16:37:59 2010
New Revision: 94333
URL: http://llvm.org/viewvc/llvm-project?rev=94333&view=rev
Log:
Preserve access for enum constants during template instantiation.
Modified:
cfe/trunk/lib/Sema/SemaTemplateInstantiateDecl.cpp
Modified: cfe/trunk/lib/Sema/SemaTemplateInstantiateDecl.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Sema/SemaTemplateInstantiateDecl.cpp?rev=94333&r1=94332&r2=94333&view=diff
==============================================================================
--- cfe/trunk/lib/Sema/SemaTemplateInstantiateDecl.cpp (original)
+++ cfe/trunk/lib/Sema/SemaTemplateInstantiateDecl.cpp Sat Jan 23 16:37:59 2010
@@ -493,6 +493,7 @@
}
if (EnumConst) {
+ EnumConst->setAccess(Enum->getAccess());
Enum->addDecl(EnumConst);
Enumerators.push_back(Sema::DeclPtrTy::make(EnumConst));
LastEnumConst = EnumConst;
More information about the cfe-commits
mailing list