public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* c++/9098: error: expected unqualified-id
@ 2002-12-29 13:06 ritzert
0 siblings, 0 replies; 2+ messages in thread
From: ritzert @ 2002-12-29 13:06 UTC (permalink / raw)
To: gcc-gnats
>Number: 9098
>Category: c++
>Synopsis: error: expected unqualified-id
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: unassigned
>State: open
>Class: rejects-legal
>Submitter-Id: net
>Arrival-Date: Sun Dec 29 13:06:00 PST 2002
>Closed-Date:
>Last-Modified:
>Originator: Michael Ritzert
>Release: gcc version 3.4 20021229
>Organization:
>Environment:
i386-unknown-freebsd4.5/
i686-pc-linux-gnu
>Description:
The following snippet is taken from STLport:
template <class baz>
struct bar
{
typedef typename baz::rebind<int> foo;
};
Compilation fails with
x.cpp:4: error: expected unqualified-id
>How-To-Repeat:
c++ -c x.cpp
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: c++/9098: error: expected unqualified-id
@ 2003-01-04 15:32 lerdsuwa
0 siblings, 0 replies; 2+ messages in thread
From: lerdsuwa @ 2003-01-04 15:32 UTC (permalink / raw)
To: gcc-bugs, gcc-prs, nobody, ritzert
Synopsis: error: expected unqualified-id
State-Changed-From-To: open->closed
State-Changed-By: lerdsuwa
State-Changed-When: Sat Jan 4 07:32:14 2003
State-Changed-Why:
Not a bug. You need to use
typedef typename baz::template rebind<int> foo;
^^^^^^^^
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=9098
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2003-01-04 15:32 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-12-29 13:06 c++/9098: error: expected unqualified-id ritzert
2003-01-04 15:32 lerdsuwa
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).