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++/68313] "using" shadows declaration


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.

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