[Bug libstdc++/92927] Bootstrap failed with CXXFLAGS="-O0"
redi at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Fri Dec 20 17:10:00 GMT 2019
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92927
--- Comment #4 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Author: redi
Date: Fri Dec 20 17:10:18 2019
New Revision: 279656
URL: https://gcc.gnu.org/viewcvs?rev=279656&root=gcc&view=rev
Log:
libstdc++: Add inline to maybe-constexpr functions (PR 92927)
Originally these functions were always inline. I changed them in r277342
to be always constexpr, then in r277588 changed them to be constexpr for
C++14, but I didn't restore the 'inline' for C++11. That leads to linker
errors when libstdc++.so is built unoptimized, because those functions
don't get instantiated in src/c++11/string-inst.o
PR libstdc++/92927
* include/bits/alloc_traits.h (__alloc_on_copy, __alloc_on_move)
(__alloc_on_swap): Add inline specifier.
Modified:
trunk/libstdc++-v3/ChangeLog
trunk/libstdc++-v3/include/bits/alloc_traits.h
More information about the Gcc-bugs
mailing list