public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* c++/10682: gcc 3.3 chokes on a typedef for an enum, both inside a class template
@ 2003-05-08 14:46 meinlschmidt
  0 siblings, 0 replies; only message in thread
From: meinlschmidt @ 2003-05-08 14:46 UTC (permalink / raw)
  To: gcc-gnats


>Number:         10682
>Category:       c++
>Synopsis:       gcc 3.3 chokes on a typedef for an enum, both inside a class template
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          rejects-legal
>Submitter-Id:   net
>Arrival-Date:   Thu May 08 14:46:01 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator:     Stefan Meinlschmidt
>Release:        gcc (GCC) 3.3 20030226 (prerelease) (SuSE Linux)
>Organization:
>Environment:
Intel clone,
Linux, SuSE 8.2 distro out-of-the-box
>Description:
#ifdef CLUNK
template<typename T>
#endif
class Foo {
public:
  enum xyzzy {a,b,c};
  typedef xyzzy Xyzzy;
};

class Bar {
  void baz(Foo
#ifdef CLUNK
  <int>
#endif
  ::Xyzzy x);  // error: `Xyzzy' is not a member of type `Foo<int>'
};
>How-To-Repeat:
gcc -DCLUNK hitTheBug.C
>Fix:
omit -DCLUNK :-)
or use gcc (GCC) 3.2.2
>Release-Note:
>Audit-Trail:
>Unformatted:


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2003-05-08 14:46 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-05-08 14:46 c++/10682: gcc 3.3 chokes on a typedef for an enum, both inside a class template meinlschmidt

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).