[all-commits] [llvm/llvm-project] d092c9: [libc++] Fix constexpr dynamic allocation on GCC 10
Louis Dionne via All-commits
all-commits at lists.llvm.org
Mon Sep 28 14:44:51 PDT 2020
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: d092c912885cc152bef27019525b8fd0761aaaa2
https://github.com/llvm/llvm-project/commit/d092c912885cc152bef27019525b8fd0761aaaa2
Author: Louis Dionne <ldionne at apple.com>
Date: 2020-09-28 (Mon, 28 Sep 2020)
Changed paths:
M libcxx/include/memory
M libcxx/include/new
M libcxx/test/std/utilities/memory/specialized.algorithms/specialized.construct/construct_at.pass.cpp
M libcxx/test/std/utilities/memory/specialized.algorithms/specialized.destroy/destroy_at.pass.cpp
Log Message:
-----------
[libc++] Fix constexpr dynamic allocation on GCC 10
We're technically not allowed by the Standard to call ::operator new in
constexpr functions like __libcpp_allocate. Clang doesn't seem to complain
about it, but GCC does.
More information about the All-commits
mailing list