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++/9098: error: expected unqualified-id


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


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