llvm-project/clang/test/CXX/drs
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
..
dr0xx.cpp Update tests touched by r249656 2015-10-08 06:31:22 +00:00
dr1xx.cpp [Parser] Clear the TemplateParamScope bit of the current scope's flag 2016-04-29 02:24:14 +00:00
dr2xx.cpp DR295: cv-qualifiers on function types are ignored in C++. 2015-05-14 19:10:42 +00:00
dr3xx.cpp Update tests touched by r249656 2015-10-08 06:31:22 +00:00
dr4xx.cpp Implement the likely resolution of core issue 253. 2016-02-19 01:52:46 +00:00
dr5xx.cpp Make SemaAccess smarter about determining when a dependent class might 2016-03-23 20:39:06 +00:00
dr6xx.cpp PR22208: On FreeBSD systems, __STDC_MB_MIGHT_NEQ_WC__ is expected to be defined 2015-01-13 01:47:45 +00:00
dr7xx.cpp Mark DR777 only as fixed in clang SVN. 2015-03-27 17:38:35 +00:00
dr9xx.cpp [Parse] Allow 'constexpr' in condition declarations 2015-06-25 22:06:40 +00:00
dr10xx.cpp DR1048: drop top-level cv-qualifiers when deducing the return type of a 2014-12-19 22:10:51 +00:00
dr12xx.cpp Mark DR1250 as implemented 2016-02-01 01:33:17 +00:00
dr13xx.cpp N3922: direct-list-initialization of an auto-typed variable no longer deduces a 2015-11-11 01:36:17 +00:00
dr14xx.cpp DR1467: If aggregate initialization encounters an initializer list for which 2015-02-16 04:42:59 +00:00
dr15xx.cpp Add some more tests for initializer lists related to CWG1591 2015-12-11 01:04:30 +00:00
dr16xx.cpp Improve the "braces around scalar init" warning to determine whether to warn 2015-02-12 01:50:05 +00:00
dr17xx.cpp Re-arrange DR test cases, and update DR status page. 2015-01-28 01:01:21 +00:00
dr18xx.cpp DR1684: a constexpr member function need not be a member of a literal class type. 2014-12-16 23:12:52 +00:00
dr19xx.cpp DR1909: Diagnose all invalid cases of a class member sharing its name with the class. 2015-07-06 01:45:27 +00:00
dr412.cpp C++14: Disable sized deallocation by default due to ABI breakage 2015-03-20 00:31:07 +00:00
dr1748.cpp Update cxx_dr_status to cover dr1748 and add test. 2015-02-14 03:38:31 +00:00