Richard Smith
9155be1e54
C++1y: provide full 'auto' return type deduction for lambda expressions. This
...
completes the implementation of N3638.
llvm-svn: 181669
2013-05-12 03:09:35 +00:00
Aaron Ballman
8d4688718b
Fixes some test cases that should have come along with r157943.
...
llvm-svn: 157947
2012-06-04 20:07:46 +00:00
Douglas Gregor
b9e38f19f7
Specialize the diagnostic complaining about conflicting types of
...
return statements within a lambda; this diagnostic previously referred
to blocks.
llvm-svn: 150584
2012-02-15 15:57:22 +00:00
Douglas Gregor
621003e7b9
Check the return type of lambda expressions.
...
llvm-svn: 150503
2012-02-14 21:20:44 +00:00
Douglas Gregor
940a550f0d
Don't allow deduction of a lambda result type from an initializer
...
list; it is not an expression.
llvm-svn: 150194
2012-02-09 18:40:39 +00:00
Douglas Gregor
7345626a5b
Implement return type deduction for lambdas per C++11
...
[expr.prim.lambda]p4, including the current suggested resolution of
core isue 975, which allows multiple return statements so long as the
types match. ExtWarn when user code is actually making use of this
extension.
llvm-svn: 150168
2012-02-09 10:18:50 +00:00