https://gcc.gnu.org/bugzilla/show_bug.cgi?id=59256
--- Comment #11 from Jonathan Wakely <redi at gcc dot gnu.org> --- Author: redi Date: Mon Oct 3 14:42:06 2016 New Revision: 240720 URL: https://gcc.gnu.org/viewcvs?rev=240720&root=gcc&view=rev Log: Fix libstdc++ versioned namespace build PR libstdc++/68323 PR libstdc++/77794 * config/abi/pre/gnu-versioned-namespace.ver: Add export for __cxa_thread_atexit. * include/Makefile.am: Add <experimental/lfts_config.h> * include/Makefile.in: Regenerate. * src/filesystem/Makefile.in: Likewise. * 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/experimental/fs_fwd.h: Declare versioned namespace. * include/experimental/lfts_config.h: Declare versioned namespaces. * include/experimental/algorithm: Include <experimental/lfts_config.h>. * include/experimental/any: Likewise. * include/experimental/chrono: Likewise. * include/experimental/functional: Likewise. * include/experimental/optional: Likewise. * include/experimental/ratio: Likewise. * include/experimental/system_error: Likewise. * include/experimental/tuple: Likewise. * include/experimental/type_traits: Likewise. * include/experimental/string_view: Likewise. Fix nesting of versioned namespaces. * include/experimental/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/ext/profile/mutex_extensions_neg.cc: Likewise. Added: branches/gcc-5-branch/libstdc++-v3/include/experimental/lfts_config.h - copied, changed from r240693, branches/gcc-5-branch/libstdc++-v3/include/experimental/chrono branches/gcc-5-branch/libstdc++-v3/testsuite/17_intro/using_namespace_std_exp_neg.cc Modified: branches/gcc-5-branch/libstdc++-v3/ChangeLog branches/gcc-5-branch/libstdc++-v3/config/abi/pre/gnu-versioned-namespace.ver branches/gcc-5-branch/libstdc++-v3/include/Makefile.am branches/gcc-5-branch/libstdc++-v3/include/Makefile.in branches/gcc-5-branch/libstdc++-v3/include/bits/basic_string.h branches/gcc-5-branch/libstdc++-v3/include/bits/c++config branches/gcc-5-branch/libstdc++-v3/include/bits/regex.h branches/gcc-5-branch/libstdc++-v3/include/bits/uniform_int_dist.h branches/gcc-5-branch/libstdc++-v3/include/experimental/algorithm branches/gcc-5-branch/libstdc++-v3/include/experimental/any branches/gcc-5-branch/libstdc++-v3/include/experimental/chrono branches/gcc-5-branch/libstdc++-v3/include/experimental/fs_fwd.h branches/gcc-5-branch/libstdc++-v3/include/experimental/functional branches/gcc-5-branch/libstdc++-v3/include/experimental/optional branches/gcc-5-branch/libstdc++-v3/include/experimental/ratio branches/gcc-5-branch/libstdc++-v3/include/experimental/string_view branches/gcc-5-branch/libstdc++-v3/include/experimental/string_view.tcc branches/gcc-5-branch/libstdc++-v3/include/experimental/system_error branches/gcc-5-branch/libstdc++-v3/include/experimental/tuple branches/gcc-5-branch/libstdc++-v3/include/experimental/type_traits branches/gcc-5-branch/libstdc++-v3/include/std/chrono branches/gcc-5-branch/libstdc++-v3/include/std/complex branches/gcc-5-branch/libstdc++-v3/src/filesystem/Makefile.in branches/gcc-5-branch/libstdc++-v3/testsuite/20_util/duration/literals/range.cc branches/gcc-5-branch/libstdc++-v3/testsuite/experimental/any/misc/any_cast_neg.cc branches/gcc-5-branch/libstdc++-v3/testsuite/ext/profile/mutex_extensions_neg.cc