This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Inline namespace consideration
- From: François Dumont <frs dot dumont at gmail dot com>
- To: "libstdc++ at gcc dot gnu dot org" <libstdc++ at gcc dot gnu dot org>, nathan at acm dot org
- Date: Fri, 24 Nov 2017 18:05:41 +0100
- Subject: Inline namespace consideration
- Authentication-results: sourceware.org; auth=none
Hi
We recently fixed the version namespace following a front-end
evolution which forbade to have the same namespace inline at different
level of a namespace tree (see PR 81064).
However I see this organization for the __cxx11 namespace:
namespace std
{
inline namespace __cxx11 __attribute__((__abi_tag__ ("cxx11"))) { }
}
namespace std
{
namespace __cxx1998
{
// This one is not used, just declared.
inline namespace __cxx11 __attribute__((__abi_tag__ ("cxx11"))) { }
}
}
namespace std _GLIBCXX_VISIBILITY(default)
{
namespace filesystem
{
// This one is used.
inline namespace __cxx11 __attribute__((__abi_tag__ ("cxx11"))) { }
}
}
And g++ doesn't complain. Why ? Is it related to the abi tag on it ?
François