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

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


On Tue, Feb 21, 2012 at 4:09 PM, John Freeman <jfreeman at cse.tamu.edu> wrote:
> This is a small start based on a run-through of the FDIS.
>
> Some errors seem poorly diagnosed in the revision I used (b09ab8c on the Git
> mirror; I believe after r151076 in the Subversion repo). I wrote the tests
> as I would like to see them diagnosed instead of how they are currently, so
> those show up as unexpected failures.

Please file bugs on bad diagnostics.

> A missing feature (specifically conversion to function-to-pointer) also
> appears as an unexpected failure.

Please try a newer clang; the conversion-to-function-pointer should be
working now.

> Please let me know what other tests would be desired, and I'll write them
> up. Please also point out any mistakes I made with these tests. I want to
> make sure they conform to Clang's standards.

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/
.

I'm not entirely sure what you're trying to do with the test involving
noexcept...

-Eli



More information about the cfe-commits mailing list