[all-commits] [llvm/llvm-project] 8153de: PR48606: The lifetime of a constexpr heap allocati...
Richard Smith via All-commits
all-commits at lists.llvm.org
Mon Feb 8 18:03:47 PST 2021
Branch: refs/heads/release/12.x
Home: https://github.com/llvm/llvm-project
Commit: 8153dee37272a73b1ed74ac1bc12422fac8ef033
https://github.com/llvm/llvm-project/commit/8153dee37272a73b1ed74ac1bc12422fac8ef033
Author: Richard Smith <richard at metafoo.co.uk>
Date: 2021-02-08 (Mon, 08 Feb 2021)
Changed paths:
M clang/lib/AST/ExprConstant.cpp
M clang/test/SemaCXX/cxx2a-constexpr-dynalloc.cpp
Log Message:
-----------
PR48606: The lifetime of a constexpr heap allocation always started
during the same evaluation.
It looks like the only case for which this matters is determining
whether mutable subobjects of a heap allocation can be modified during
constant evaluation.
(cherry picked from commit 21e8bb83253e1a2f4b6fad9b53cafe8c530a38e2)
More information about the All-commits
mailing list