llvm-project/clang/test/CXX/temp
Akira Hatanaka 10aced824a [Parser] Clear the TemplateParamScope bit of the current scope's flag
if we are parsing a template specialization.

This commit makes changes to clear the TemplateParamScope bit and set
the TemplateParamParent field of the current scope to null if a template
specialization is being parsed.

Before this commit, Sema::ActOnStartOfLambdaDefinition would check
whether the parent template scope had any decls to determine whether
or not a template specialization was being parsed. This wasn't correct
since it couldn't distinguish between a real template specialization and
a template defintion with an unnamed template parameter (only template
parameters with names are added to the scope's decl list). To fix the
bug, this commit changes the code to check the pointer to the parent
template scope rather than the decl list.

rdar://problem/23440346

Differential Revision: http://reviews.llvm.org/D19175

llvm-svn: 267975
2016-04-29 02:24:14 +00:00
..
temp.arg [Parser] Clear the TemplateParamScope bit of the current scope's flag 2016-04-29 02:24:14 +00:00
temp.decls Warn if function or variable cannot be implicitly instantiated 2016-04-19 06:19:52 +00:00
temp.fct.spec When deducing template parameters from base classes of an argument type, don't 2016-04-25 19:09:05 +00:00
temp.names Prior to adding the new "expected-no-diagnostics" directive to VerifyDiagnosticConsumer, make the necessary adjustment to 580 test-cases which will henceforth require this new directive. 2012-10-19 12:44:48 +00:00
temp.param [Lit Test] Updated 34 Lit tests to be C++11 compatible. 2015-11-17 20:25:05 +00:00
temp.res PR26048, PR26050: put non-type template parameters and indirect field decls 2016-01-06 22:49:11 +00:00
temp.spec Lit C++11 Compatibility Patch #8 2016-04-14 23:47:07 +00:00
temp.type
p3.cpp Implement DR482: namespace members can be redeclared with a qualified name 2013-12-05 07:51:02 +00:00