]> granicus.if.org Git - clang/commit
Sema: Do not allow lambda expressions to appear inside of constant expressions
authorDavid Majnemer <david.majnemer@gmail.com>
Fri, 25 Oct 2013 09:12:52 +0000 (09:12 +0000)
committerDavid Majnemer <david.majnemer@gmail.com>
Fri, 25 Oct 2013 09:12:52 +0000 (09:12 +0000)
commit9d33c40838367ffcc3206a7120a0ce32922b66d8
treebedd0b556b81399923f02e3c4d198df3e18da0fe
parent68eccccbbfc9d87b754df539f5b1343f4c499b63
Sema: Do not allow lambda expressions to appear inside of constant expressions

We would previously not diagnose this which would lead to crashes (on
very strange code).

This fixes PR17675.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@193397 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Basic/DiagnosticSemaKinds.td
lib/Sema/SemaExpr.cpp
lib/Sema/SemaLambda.cpp
test/CXX/expr/expr.const/p2-0x.cpp
test/SemaCXX/new-delete-0x.cpp