[LLVMbugs] [Bug 13484] Non-capturing lambas should be a constant expression

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Mon Jul 30 16:36:48 PDT 2012


Richard Smith <richard-llvm at metafoo.co.uk> changed:

           What    |Removed                     |Added
             Status|NEW                         |RESOLVED
                 CC|                            |richard-llvm at metafoo.co.uk
         Resolution|                            |INVALID

--- Comment #1 from Richard Smith <richard-llvm at metafoo.co.uk> 2012-07-30 18:36:48 CDT ---
Here's what the standard has to say about this code:

[expr.const]p2: A conditional-expression is a core constant expression unless
it involves one of the following as a potentially evaluated subexpression

  -- a lambda-expression

If you can present evidence that this is a deliberate GNU extension, then we
can consider supporting it as such, but for now I'm marking this as invalid
since this seems to be just a g++ bug.

Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

More information about the llvm-bugs mailing list