c++/1656: gcc incorrectly accepts template syntax on non-template class
wolfgang.bangerth@iwr.uni-heidelberg.de
wolfgang.bangerth@iwr.uni-heidelberg.de
Mon Jan 15 04:26:00 GMT 2001
>Number: 1656
>Category: c++
>Synopsis: gcc incorrectly accepts template syntax on non-template class
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: unassigned
>State: open
>Class: accepts-illegal
>Submitter-Id: net
>Arrival-Date: Mon Jan 15 04:26:00 PST 2001
>Closed-Date:
>Last-Modified:
>Originator: Wolfgang Bangerth
>Release: unknown-1.0
>Organization:
>Environment:
gcc CVS 2001-01-14 and gcc2.95.2
>Description:
The following is accepted by CVS gcc and 2.95.2:
-------------
template <int dim> struct Outer
{
struct Inner;
void f() { Inner<dim> i; };
};
-------------
I think it shouldn't be, since `Inner' is no template, so
`Inner<dim>' shouldn't really make sense.
Regards
Wolfgang
>How-To-Repeat:
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the Gcc-bugs
mailing list