c++/9171: [3.4 regression] trouble with explicit template specialization

reichelt@igpm.rwth-aachen.de reichelt@igpm.rwth-aachen.de
Sat Jan 4 15:16:00 GMT 2003


>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:



More information about the Gcc-bugs mailing list