This is the mail archive of the
gcc-prs@gcc.gnu.org
mailing list for the GCC project.
c++/7866: compile error when bit field has same name as namespace
- From: wilsonjd at yahoo dot com
- To: gcc-gnats at gcc dot gnu dot org
- Date: 9 Sep 2002 15:35:59 -0000
- Subject: c++/7866: compile error when bit field has same name as namespace
- Reply-to: wilsonjd at yahoo dot com
>Number: 7866
>Category: c++
>Synopsis: compile error when bit field has same name as namespace
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: unassigned
>State: open
>Class: rejects-legal
>Submitter-Id: net
>Arrival-Date: Mon Sep 09 08:36:01 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator: Jeff Wilson
>Release: 3.0.3
>Organization:
>Environment:
Linux
>Description:
attached code causes compile error:
bitfieldbug.C:7: syntax error before `:' token
>How-To-Repeat:
attempt to compile attached program. No special flags needed.
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:
----gnatsweb-attachment----
Content-Type: application/octet-stream; name="bitfieldbug.C"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="bitfieldbug.C"
bmFtZXNwYWNlIHoge30KCnN0cnVjdCBhYmMKewogIHVuc2lnbmVkIGludCB6Ojg7Cn07CgppbnQg
bWFpbigpCnsKICByZXR1cm4gMDsKfQo=