From mboxrd@z Thu Jan 1 00:00:00 1970 From: theonetruekenny@yahoo.com To: gcc-gnats@gcc.gnu.org Cc: kenny.simpson@gs.com Subject: c++/2537: namespace id's and bitmask names colliding Date: Wed, 11 Apr 2001 11:26:00 -0000 Message-id: <20010411182106.24113.qmail@sourceware.cygnus.com> X-SW-Source: 2001-04/msg00201.html List-Id: >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: