[prev in list] [next in list] [prev in thread] [next in thread]
List: gcc
Subject: Re: private member in union { union }
From: Jonathan Wakely <jwakely.gcc () gmail ! com>
Date: 2011-12-30 15:28:54
Message-ID: CAH6eHdQr-NXGU0ngj4i-gFFEbaagqgy7ZmOXQSHS4XcTGrG4Xg () mail ! gmail ! com
[Download RAW message or body]
On 30 December 2011 15:25, Jakub Staszak wrote:
> Hello,
>
> I've found that:
>
> class Prv {
> private:
> =A0union
> =A0{
> =A0 =A0union
> =A0 =A0{
> =A0 =A0 =A0unsigned int Bits;
> =A0 =A0};
> =A0};
> };
>
> unsigned int getBits(Prv *P) {
> =A0return P->Bits;
> }
>
> doesn't generate any error. Is it a bug?
Yes, I think so, please report it to bugzilla.
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic