[all-commits] [llvm/llvm-project] e28d9b: PR44958: Allow member calls and typeid / dynamic_c...

Richard Smith via All-commits all-commits at lists.llvm.org
Tue Feb 18 14:57:21 PST 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: e28d9bae4b3be60e90daa69a2eeb3254c952e051
      https://github.com/llvm/llvm-project/commit/e28d9bae4b3be60e90daa69a2eeb3254c952e051
  Author: Richard Smith <richard at metafoo.co.uk>
  Date:   2020-02-18 (Tue, 18 Feb 2020)

  Changed paths:
    M clang/lib/AST/ExprConstant.cpp
    M clang/test/SemaCXX/constant-expression-cxx2a.cpp

  Log Message:
  -----------
  PR44958: Allow member calls and typeid / dynamic_cast on mutable objects
and objects with mutable subobjects.

The standard wording doesn't really cover these cases; accepting all
such cases seems most in line with what we do in other cases and what
other compilers do. (Essentially this means we're assuming that objects
external to the evaluation are always in-lifetime.)




More information about the All-commits mailing list