PR48606: The lifetime of a constexpr heap allocation always started
authorRichard Smith <richard@metafoo.co.uk>
Tue, 9 Feb 2021 01:58:05 +0000 (17:58 -0800)
committerRichard Smith <richard@metafoo.co.uk>
Tue, 9 Feb 2021 01:58:05 +0000 (17:58 -0800)
commit21e8bb83253e1a2f4b6fad9b53cafe8c530a38e2
tree0041cae76096e803977bf519ae43a64f9f6f2772
parentc945dc4a5023d6a17d11fcda76509b94b36e34fc
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.
clang/lib/AST/ExprConstant.cpp
clang/test/SemaCXX/cxx2a-constexpr-dynalloc.cpp