public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* Re: c++/9849: malformed template typename produces strange diagnostic
@ 2003-02-26 17:06 bangerth
0 siblings, 0 replies; 2+ messages in thread
From: bangerth @ 2003-02-26 17:06 UTC (permalink / raw)
To: gcc-bugs, gcc-prs, nobody, ras, zak
Synopsis: malformed template typename produces strange diagnostic
State-Changed-From-To: open->analyzed
State-Changed-By: bangerth
State-Changed-When: Wed Feb 26 17:06:02 2003
State-Changed-Why:
Confirmed. 3.4 spits out another set of messages:
g/x> /home/bangerth/bin/gcc-3.4-pre/bin/c++ -c x.cc
x.cc:8: error: variable or field `foo' declared void
x.cc:8: error: template declaration of `int foo'
x.cc:8: error: expected `('
x.cc:8: error: expected primary-expression
x.cc:8: error: expected primary-expression
x.cc:8: error: expected expected `;'
They are so far off the true reason that I consider this
a bug.
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=9849
^ permalink raw reply [flat|nested] 2+ messages in thread
* c++/9849: malformed template typename produces strange diagnostic
@ 2003-02-25 15:46 zak
0 siblings, 0 replies; 2+ messages in thread
From: zak @ 2003-02-25 15:46 UTC (permalink / raw)
To: gcc-gnats; +Cc: ras
>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@transversal.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:
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2003-02-26 17:06 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-02-26 17:06 c++/9849: malformed template typename produces strange diagnostic bangerth
-- strict thread matches above, loose matches on Subject: below --
2003-02-25 15:46 zak
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).