[cfe-commits] r98375 - /cfe/trunk/lib/Sema/SemaTemplateInstantiate.cpp
John McCall
rjmccall at apple.com
Fri Mar 12 12:02:47 PST 2010
Author: rjmccall
Date: Fri Mar 12 14:02:47 2010
New Revision: 98375
URL: http://llvm.org/viewvc/llvm-project?rev=98375&view=rev
Log:
Preserve the inherited-default-argument bit through instantiation.
Modified:
cfe/trunk/lib/Sema/SemaTemplateInstantiate.cpp
Modified: cfe/trunk/lib/Sema/SemaTemplateInstantiate.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Sema/SemaTemplateInstantiate.cpp?rev=98375&r1=98374&r2=98375&view=diff
==============================================================================
--- cfe/trunk/lib/Sema/SemaTemplateInstantiate.cpp (original)
+++ cfe/trunk/lib/Sema/SemaTemplateInstantiate.cpp Fri Mar 12 14:02:47 2010
@@ -917,6 +917,8 @@
} else if (Expr *Arg = OldParm->getDefaultArg())
NewParm->setUninstantiatedDefaultArg(Arg);
+ NewParm->setHasInheritedDefaultArg(OldParm->hasInheritedDefaultArg());
+
SemaRef.CurrentInstantiationScope->InstantiatedLocal(OldParm, NewParm);
return NewParm;
}
More information about the cfe-commits
mailing list