This is the mail archive of the
gcc-prs@gcc.gnu.org
mailing list for the GCC project.
c++/9849: malformed template typename produces strange diagnostic
- From: zak at transversal dot com
- To: gcc-gnats at gcc dot gnu dot org
- Cc: ras at transversal dot com
- Date: 25 Feb 2003 15:45:04 -0000
- Subject: c++/9849: malformed template typename produces strange diagnostic
- Reply-to: zak at transversal dot com
>Number: 9849
>Category: c++
>Synopsis: malformed template typename produces strange diagnostic
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: unassigned
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Tue Feb 25 15:46:00 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator: zak at transversal dot com
>Release: unknown-1.0
>Organization:
>Environment:
Debian (unstable); locally-compiled gcc 3.2.1
>Description:
The following code produces the error:
test.cc:8: sorry, not implemented: `tree_vec' not supported by dump_expr
which isn't very helpful -- the problem is in fact a missing "template" keyword before C2<U>.
template<class T> struct C1
{
template<class U> struct C2
{ class Type { }; };
};
template<class T, class U>
void foo(typename C1<T>::C2<U>::Type *) { }
>How-To-Repeat:
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted: