This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/68313] "using" shadows declaration
- From: "wd11 at leicester dot ac.uk" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 12 Nov 2015 15:52:08 +0000
- Subject: [Bug c++/68313] "using" shadows declaration
- Auto-submitted: auto-generated
- References: <bug-68313-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68313
wd11 at leicester dot ac.uk changed:
What |Removed |Added
----------------------------------------------------------------------------
Version|unknown |5.1.0
--- Comment #2 from wd11 at leicester dot ac.uk ---
Johannes,
regarding the case with nested classes (in analogy to the second code snippet),
void f() and void f(X) don't have the same type (signature, or what is referred
to with 'type of a function' here), so the program would still be okay.
> What happens if you use unqualified names, i.e. if you declare the explicit
> instantiation directly in namespace N2?
I presume you refer to the first code snippet: same error
> And what happens if you use a "<>" to try and explicitly refer to the template?
no error in either code snippet.