This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]