r277458 - in /trunk/libstdc++-v3: ChangeLog inc...
redi@gcc.gnu.org
redi@gcc.gnu.org
Fri Oct 25 17:02:00 GMT 2019
Author: redi
Date: Fri Oct 25 17:02:35 2019
New Revision: 277458
URL: https://gcc.gnu.org/viewcvs?rev=277458&root=gcc&view=rev
Log:
Fix compilation with Clang
The new constexpr destructor on std::allocator breaks compilation with
Clang in C++2a mode. This only makes it constexpr if the compiler
supports the P0784R7 features.
* include/bits/allocator.h: Check __cpp_constexpr_dynamic_alloc
before making the std::allocator destructor constexpr.
* testsuite/20_util/allocator/requirements/constexpr.cc: New test.
Added:
trunk/libstdc++-v3/testsuite/20_util/allocator/requirements/constexpr.cc
Modified:
trunk/libstdc++-v3/ChangeLog
trunk/libstdc++-v3/include/bits/allocator.h
More information about the Libstdc++-cvs
mailing list