aboutsummaryrefslogtreecommitdiff
path: root/gcc/fibonacci_heap.h
diff options
context:
space:
mode:
authorJonathan Wakely <jwakely@redhat.com>2019-10-25 18:02:35 +0100
committerJonathan Wakely <redi@gcc.gnu.org>2019-10-25 18:02:35 +0100
commiteadcde8e8f53c950fc17b52fd33adda40d28f7af (patch)
tree4d27dc4cf1824e4b37fa393498803ee9a38bf8d8 /gcc/fibonacci_heap.h
parent2cd6630fc0218580f29e87ea418d9e435d062412 (diff)
downloadgcc-eadcde8e8f53c950fc17b52fd33adda40d28f7af.zip
gcc-eadcde8e8f53c950fc17b52fd33adda40d28f7af.tar.gz
gcc-eadcde8e8f53c950fc17b52fd33adda40d28f7af.tar.bz2
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. From-SVN: r277458
Diffstat (limited to 'gcc/fibonacci_heap.h')
0 files changed, 0 insertions, 0 deletions