This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Inline namespace consideration


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]