This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
c++/9171: [3.4 regression] trouble with explicit template specialization
- From: reichelt at igpm dot rwth-aachen dot de
- To: gcc-gnats at gcc dot gnu dot org
- Date: 4 Jan 2003 15:14:38 -0000
- Subject: c++/9171: [3.4 regression] trouble with explicit template specialization
- Reply-to: reichelt at igpm dot rwth-aachen dot de
>Number: 9171
>Category: c++
>Synopsis: [3.4 regression] trouble with explicit template specialization
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: unassigned
>State: open
>Class: rejects-legal
>Submitter-Id: net
>Arrival-Date: Sat Jan 04 07:16:01 PST 2003
>Closed-Date:
>Last-Modified:
>Originator: Volker Reichelt
>Release: gcc 3.4-20021230
>Organization:
>Environment:
i686-pc-linux-gnu
>Description:
When I compile the following (IMHO legal) code snippet
----------------------snip here------------------
template <int i> struct A;
template <> struct A<0> { struct B; };
struct A<0>::B {};
----------------------snip here------------------
using the new parser, I get the following error message:
bug.cc:3: error: too few template-parameter-lists
This is a regression on the 3.4 branch.
The problem might be related to PR 9127 and PR 3825.
>How-To-Repeat:
Just compile with
g++ -c
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted: