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)
commit22a5d61b5d3913b5967f5fa43ed4b1764a131a62
tree9d49fcb86066603d1c3a4a1171ed3ef77cbdcf83
parent45d099b995acacb165367edc7f3d77eb3cc8407d
Add an explicit diagnostic for the case where an expression is not a constant
expression because it uses 'this'. Inspired by PR20219 comment#2.

llvm-svn: 212433
clang/include/clang/Basic/DiagnosticASTKinds.td
clang/lib/AST/ExprConstant.cpp
clang/test/SemaCXX/constant-expression-cxx11.cpp