This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/81347] g++ confused by namespaces and friend classes
- From: "redi at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 17 Jul 2017 12:11:12 +0000
- Subject: [Bug c++/81347] g++ confused by namespaces and friend classes
- Auto-submitted: auto-generated
- References: <bug-81347-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81347
--- Comment #3 from Jonathan Wakely <redi at gcc dot gnu.org> ---
I would guess that the instantiation of A::tree injects the type map into the
enclosing namespace, and then the using-declaration finds two declarations and
thinks it's an error.
bug.cc:17:10: error: ‘map’ is already declared in this scope
using A::map;
^~~