[PATCH] D11194: Instantiate function declarations in instantiated functions.
Richard Smith
richard at metafoo.co.uk
Tue Jul 14 13:51:39 PDT 2015
rsmith added inline comments.
================
Comment at: lib/Sema/SemaTemplateInstantiate.cpp:1695
@@ +1694,3 @@
+ } else if (OwningFunc->getLexicalDeclContext()->isFunctionOrMethod() &&
+ !OwningFunc->isThisDeclarationADefinition()) {
+ // This is a function declaration within a function definition, as in:
----------------
Is this necessary? A local function declaration can't be a definition.
http://reviews.llvm.org/D11194
More information about the cfe-commits
mailing list