https://gcc.gnu.org/bugzilla/show_bug.cgi?id=59256
--- Comment #9 from Jonathan Wakely <redi at gcc dot gnu.org> --- Author: redi Date: Mon Oct 3 14:35:28 2016 New Revision: 240714 URL: https://gcc.gnu.org/viewcvs?rev=240714&root=gcc&view=rev Log: Fix libstdc++ versioned namespace build PR libstdc++/68323 PR libstdc++/77794 * config/abi/pre/gnu-versioned-namespace.ver: Add exports for __cxa_thread_atexit and __gnu_cxx::__freeres. * include/Makefile.am: Add <experimental/bits/lfts_config.h> * include/Makefile.in: Regenerate. * include.bits/basic_string.h: Fix nesting of versioned namespaces. * include/bits/c++config: Declare versioned namespaces for literals. * include/bits/regex.h (basic_regex, match_results): Add workarounds for PR c++/59256. * include/bits/uniform_int_dist.h: Fix nesting of versioned namespace. * include/std/chrono: Likewise. * include/std/complex: Likewise. * include/std/string_view: Likewise. * include/std/variant: Likewise. Add workaround for PR c++/59256. * include/experimental/bits/fs_fwd.h: Declare versioned namespace. * include/experimental/bits/lfts_config.h: Declare versioned namespaces. * include/experimental/algorithm: Include <experimental/bits/lfts_config.h>. * include/experimental/any: Likewise. * include/experimental/bits/erase_if.h: Likewise. * include/experimental/chrono: Likewise. * include/experimental/functional: Likewise. * include/experimental/memory_resource: Likewise. * include/experimental/optional: Likewise. * include/experimental/propagate_const: Likewise. * include/experimental/random: Likewise. * include/experimental/ratio: Likewise. * include/experimental/system_error: Likewise. * include/experimental/tuple: Likewise. * include/experimental/type_traits: Likewise. * include/experimental/utility: Likewise. * include/experimental/string_view: Likewise. Fix nesting of versioned namespaces. * include/experimental/bits/string_view.tcc: Reopen inline namespace for non-inline function definitions. * testsuite/17_intro/using_namespace_std_exp_neg.cc: New test. * testsuite/20_util/duration/literals/range.cc: Adjust dg-error line. * testsuite/experimental/any/misc/any_cast_neg.cc: Likewise. * testsuite/experimental/propagate_const/assignment/move_neg.cc: Likewise. * testsuite/experimental/propagate_const/cons/move_neg.cc: Likewise. * testsuite/experimental/propagate_const/requirements2.cc: Likewise. * testsuite/experimental/propagate_const/requirements3.cc: Likewise. * testsuite/experimental/propagate_const/requirements4.cc: Likewise. * testsuite/experimental/propagate_const/requirements5.cc: Likewise. * testsuite/ext/profile/mutex_extensions_neg.cc: Likewise. Added: trunk/libstdc++-v3/include/experimental/bits/lfts_config.h - copied, changed from r240711, trunk/libstdc++-v3/include/experimental/bits/erase_if.h trunk/libstdc++-v3/testsuite/17_intro/using_namespace_std_exp_neg.cc Modified: trunk/libstdc++-v3/ChangeLog trunk/libstdc++-v3/config/abi/pre/gnu-versioned-namespace.ver trunk/libstdc++-v3/include/Makefile.am trunk/libstdc++-v3/include/Makefile.in trunk/libstdc++-v3/include/bits/basic_string.h trunk/libstdc++-v3/include/bits/c++config trunk/libstdc++-v3/include/bits/regex.h trunk/libstdc++-v3/include/bits/uniform_int_dist.h trunk/libstdc++-v3/include/experimental/algorithm trunk/libstdc++-v3/include/experimental/any trunk/libstdc++-v3/include/experimental/bits/erase_if.h trunk/libstdc++-v3/include/experimental/bits/fs_fwd.h trunk/libstdc++-v3/include/experimental/bits/string_view.tcc trunk/libstdc++-v3/include/experimental/chrono trunk/libstdc++-v3/include/experimental/functional trunk/libstdc++-v3/include/experimental/memory_resource trunk/libstdc++-v3/include/experimental/optional trunk/libstdc++-v3/include/experimental/propagate_const trunk/libstdc++-v3/include/experimental/random trunk/libstdc++-v3/include/experimental/ratio trunk/libstdc++-v3/include/experimental/string_view trunk/libstdc++-v3/include/experimental/system_error trunk/libstdc++-v3/include/experimental/tuple trunk/libstdc++-v3/include/experimental/type_traits trunk/libstdc++-v3/include/experimental/utility trunk/libstdc++-v3/include/std/chrono trunk/libstdc++-v3/include/std/complex trunk/libstdc++-v3/include/std/string_view trunk/libstdc++-v3/include/std/variant trunk/libstdc++-v3/testsuite/20_util/duration/literals/range.cc trunk/libstdc++-v3/testsuite/experimental/any/misc/any_cast_neg.cc trunk/libstdc++-v3/testsuite/experimental/propagate_const/assignment/move_neg.cc trunk/libstdc++-v3/testsuite/experimental/propagate_const/cons/move_neg.cc trunk/libstdc++-v3/testsuite/experimental/propagate_const/requirements2.cc trunk/libstdc++-v3/testsuite/experimental/propagate_const/requirements3.cc trunk/libstdc++-v3/testsuite/experimental/propagate_const/requirements4.cc trunk/libstdc++-v3/testsuite/experimental/propagate_const/requirements5.cc trunk/libstdc++-v3/testsuite/ext/profile/mutex_extensions_neg.cc