]> granicus.if.org Git - clang/commit
Temporary workaround for bug#12457: turn the 'constexpr function never produces
authorRichard Smith <richard-llvm@metafoo.co.uk>
Thu, 5 Apr 2012 18:57:10 +0000 (18:57 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Thu, 5 Apr 2012 18:57:10 +0000 (18:57 +0000)
commite47029aead7afc823d4e2eaba00bce39f929a858
tree1231739474b56ca6f2ca018dc55398b936ded6cc
parent85ff9693b178658f9d8af7be30a086fb1ab81fdd
Temporary workaround for bug#12457: turn the 'constexpr function never produces
a constant expression' error into a DefaultError ExtWarn, so that it can be
disabled and is suppressed in system headers. libstdc++4.7 contains some such
functions which we currently can't evaluate as constant expressions.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@154115 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Basic/DiagnosticSemaKinds.td
test/CXX/dcl.dcl/dcl.spec/dcl.constexpr/p5.cpp