This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
c++/3381: explicit template instantations fail with absolutely qualified names
- To: gcc-gnats at gcc dot gnu dot org
- Subject: c++/3381: explicit template instantations fail with absolutely qualified names
- From: Jens dot Maurer at gmx dot net
- Date: 22 Jun 2001 21:08:50 -0000
- Reply-To: Jens dot Maurer at gmx dot net
>Number: 3381
>Category: c++
>Synopsis: explicit template instantations fail with absolutely qualified names
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: unassigned
>State: open
>Class: rejects-legal
>Submitter-Id: net
>Arrival-Date: Fri Jun 22 14:16:01 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator: Jens Maurer
>Release: gcc version 3.0
>Organization:
>Environment:
Linux 2.4.4
glibc 2.2.3
>Description:
The code below shows how explicit template instantations
fail when the name of the template starts with a
reference to the global namespace "::".
explicit-instantiation-absqual.cc:8: parse error before `;' token
Versions 2.95.3 and 3.1 20010617 show the same error.
>How-To-Repeat:
namespace N {
template<class T>
class A { };
}
// template class N::A<int>; // this works (by itself)
template class ::N::A<int>; // but this doesn't
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted: