[cfe-commits] [Patch] Tests for C++11 lambda expressions

Eli Friedman eli.friedman at gmail.com
Tue Feb 21 22:21:54 PST 2012


On Tue, Feb 21, 2012 at 9:57 PM, John Freeman <jfreeman at cse.tamu.edu> wrote:
> On 2/21/2012 7:02 PM, Eli Friedman wrote:
>>
>> Please try a newer clang; the conversion-to-function-pointer should be
>> working now.
>
>
> I wrote the test wrong. It didn't deduce the return type I expected.
>
>
>> It looks like we already have coverage for a lot of the features
>> you're trying to test... see test/CXX/expr/expr.prim/expr.prim.lambda/
>> .
>
>
> My file search missed this.
>
>
>> I'm not entirely sure what you're trying to do with the test involving
>> noexcept...
>
>
> The FDIS appears to indicate noexcept takes any expression. I could be just
> be ignorant of the intention.

A noexcept expression does, yes, but you wrote it in namespace scope,
so I wasn't sure whether you meant to use it as an expression or
attach it to a declaration.

-Eli



More information about the cfe-commits mailing list