]> granicus.if.org Git - clang/commit
Add an explicit diagnostic for the case where an expression is not a constant
authorRichard Smith <richard-llvm@metafoo.co.uk>
Mon, 7 Jul 2014 06:00:13 +0000 (06:00 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Mon, 7 Jul 2014 06:00:13 +0000 (06:00 +0000)
commit841710be7cbcd4c5b6d355ffa37d2739b21b2fd8
tree7d478b2c10789327a05d50191df9fe60956b9448
parentc89ca8a144fed4b7adfbc742290c7b236b447fc3
Add an explicit diagnostic for the case where an expression is not a constant
expression because it uses 'this'. Inspired by PR20219 comment#2.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@212433 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Basic/DiagnosticASTKinds.td
lib/AST/ExprConstant.cpp
test/SemaCXX/constant-expression-cxx11.cpp