🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.g++.bug
Article #1077

bitfield name scope bug in gcc 2.2.2

#1077
From: dcb
Date: Thu, 05 Nov 1992 11:25
31 lines
1242 bytes
hello there,

Given the following code on Sun 4, with a derivative of GNU C++ 2.2.2

typedef int A;

struct B
{
    int A : 2;
} ;

then I get the following compiler error message

bug22.cc:6: syntax error before `:'

If I delete the ": 2", the error message goes away. Name spaces for
bitfields don't work.

This bug does not happen in GNU C++ 1.39, so it used to work once.

I am interested to find if this bug happens on other people's copies of
GNU C++ 2.2.2, or indeed GNU C++ 2.3

The specification for name spaces for C++ has been around for over two
years. What's going on ?


Regards

David C Binderman     Dept US/ESI, Bau 60, SEL-Alcatel AG, Lorenz Strasse 10,
D-7000 Stuttgart 40, Germany      dcb@us-es.sel.de   Tel: +49 711 821 3841
Technical Details
Message-ID: <9211050925.AA05442@us-es.sel.de>
Path: arc1-ca.pugleaf.net!sparky!uunet!charon.amdahl.com!pacbell.com!decwrl!sun-barr!ames!saimiri.primate.wisc.edu!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!us-es.SEl.DE!dcb

Show Full Headers
Complete Article Headers
Newsgroups: gnu.g++.bug
Path: arc1-ca.pugleaf.net!sparky!uunet!charon.amdahl.com!pacbell.com!decwrl!sun-barr!ames!saimiri.primate.wisc.edu!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!us-es.SEl.DE!dcb
From: dcb@us-es.SEl.DE
Subject: bitfield name scope bug in gcc 2.2.2
Message-ID: <9211050925.AA05442@us-es.sel.de>
Sender: gnulists@ai.mit.edu
Organization: GNUs Not Usenet
Distribution: gnu
Date: Thu, 5 Nov 1992 11:25:25 GMT
Approved: bug-g++@prep.ai.mit.edu
Lines: 32