]> granicus.if.org Git - clang/commit
Don't warn about runtime behavior problems in variable initializers that we
authorRichard Smith <richard-llvm@metafoo.co.uk>
Sat, 23 Sep 2017 18:27:11 +0000 (18:27 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Sat, 23 Sep 2017 18:27:11 +0000 (18:27 +0000)
commiteaedd47dbde3c4312be1b89b02368be78780ca34
tree28293ce7089335a5d0d8a1540836e7d3df9cb833
parent1de6f9cae36189a1481570c05329c338291110a0
Don't warn about runtime behavior problems in variable initializers that we
know are going to be constant-evaluated.

Any relevant diagnostics should be produced by constant expression evaluation.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@314067 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Sema/SemaExpr.cpp
test/CXX/class/class.static/class.static.data/p3.cpp
test/CXX/expr/expr.const/p2-0x.cpp
test/SemaCXX/constant-expression-cxx11.cpp
test/SemaTemplate/instantiate-static-var.cpp