]> granicus.if.org Git - clang/commit
DR1872: don't allow any calls to virtual functions in constant
authorRichard Smith <richard-llvm@metafoo.co.uk>
Thu, 9 May 2019 19:45:49 +0000 (19:45 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Thu, 9 May 2019 19:45:49 +0000 (19:45 +0000)
commit0446a431cf5657f55e363f18cc79198f10f7684c
tree4f76652a240b81419dbd6c4202cd2c2aff96df27
parent77d2b2537b1d0c5107bbc5c4cfc129bc70cbb506
DR1872: don't allow any calls to virtual functions in constant
evaluation.

Not even in cases where we would not actually perform virtual dispatch.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@360370 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Basic/DiagnosticASTKinds.td
lib/AST/ExprConstant.cpp
test/CXX/dcl.dcl/dcl.spec/dcl.constexpr/p6.cpp
test/CXX/drs/dr13xx.cpp
test/CXX/drs/dr18xx.cpp
test/SemaCXX/constant-expression-cxx11.cpp
test/SemaCXX/constant-expression-cxx1y.cpp
www/cxx_dr_status.html