[PATCH] D19175: Fix for PR27015 (variable template initialized with a generic lambda expression)

Akira Hatanaka via cfe-commits cfe-commits at lists.llvm.org
Thu Apr 28 14:27:02 PDT 2016


ahatanak updated this revision to Diff 55484.
ahatanak added a comment.

- Defined a private overload of Scope::setFlags which is called from Scope::setFlags and Scope::Init.
- Stop checking TmplScope->isTemplateParamScope() in Sema::ActOnStartOfLambdaDefinition.
- Fix test case test/CXX/drs/dr1xx.cpp to check an error message (not a warning) is printed when it's compiled with -std=c++98.


http://reviews.llvm.org/D19175

Files:
  include/clang/Sema/Scope.h
  lib/Parse/ParseTemplate.cpp
  lib/Sema/Scope.cpp
  lib/Sema/SemaLambda.cpp
  lib/Sema/SemaTemplateInstantiateDecl.cpp
  test/CXX/drs/dr1xx.cpp
  test/CXX/temp/temp.arg/temp.arg.nontype/p1.cpp
  test/SemaCXX/vartemplate-lambda.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D19175.55484.patch
Type: text/x-patch
Size: 4920 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20160428/8b377052/attachment-0001.bin>


More information about the cfe-commits mailing list