]> granicus.if.org Git - clang/commit
Remove code that tries to avoid transforming non-dependent call operator types
authorRichard Smith <richard-llvm@metafoo.co.uk>
Thu, 20 Nov 2014 23:53:14 +0000 (23:53 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Thu, 20 Nov 2014 23:53:14 +0000 (23:53 +0000)
commit350e7452a440db22f802461d171ff1ae6245c2b8
treec3468af907b2a2edfaa89feac590f9d79c47294c
parent6bc2ada0fe3759412fc73caf4346de293931306c
Remove code that tries to avoid transforming non-dependent call operator types
for lambda expressions. That can't ever work; we need to transform the
parameters in order to create new ones in the new call operator context.

Fixes a rejects-valid when transforming a context containing a
lambda-expression that uses its function parameters in C++14 mode.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@222482 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Sema/TreeTransform.h
test/SemaCXX/lambda-expressions.cpp