public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* c++/2537: namespace id's and bitmask names colliding
@ 2001-04-11 11:26 theonetruekenny
  0 siblings, 0 replies; only message in thread
From: theonetruekenny @ 2001-04-11 11:26 UTC (permalink / raw)
  To: gcc-gnats; +Cc: kenny.simpson

>Number:         2537
>Category:       c++
>Synopsis:       namespace id's and bitmask names colliding
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Apr 11 11:26:01 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator:     Kenny Simpson
>Release:        GNU C++ version 3.0 20010409 (prerelease) (i386-pc-linux-gnu)
>Organization:
>Environment:
online compiler
>Description:
If I try to use a name for an identifier of a bitmask and
that name happens to be used by a namespace, gcc flags the
bitmask as being a syntax error.
>How-To-Repeat:
compile this:

namespace baz {}

namespace foo
{
  struct bar
  {
    unsigned baz:1;
  };
}


comment out the first line, and it compiles.
>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:


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

only message in thread, other threads:[~2001-04-11 11:26 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-04-11 11:26 c++/2537: namespace id's and bitmask names colliding theonetruekenny

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