This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC 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]

[Bug c++/81064] [8 Regression] Inline namespace regression


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81064

Jonathan Wakely <redi at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2017-06-12
     Ever confirmed|0                           |1

--- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Confirmed:

namespace n1 {
  inline namespace in { }
  inline namespace n2 {
    inline namespace in { }
  }
}

namespace n1 {
  namespace in { }
}

ns.cc:9:13: error: conflicting declaration of namespace ‘n1::in’
   namespace in { }
             ^~
ns.cc:2:20: note: previous declaration of namespace ‘n1::in’ here
   inline namespace in { }
                    ^~


Aside: do we really want to translate "namespace" in diagnostics?

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