From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jens.Maurer@gmx.net To: gcc-gnats@gcc.gnu.org Subject: c++/3381: explicit template instantations fail with absolutely qualified names Date: Fri, 22 Jun 2001 14:16:00 -0000 Message-id: <20010622210850.26678.qmail@sourceware.cygnus.com> X-SW-Source: 2001-06/msg00999.html List-Id: >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 A { }; } // template class N::A; // this works (by itself) template class ::N::A; // but this doesn't >Fix: >Release-Note: >Audit-Trail: >Unformatted: