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.

Reply via email to