This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: bug in GCC or C++ standard ?
- From: René Bürgel <r dot buergel at unicontrol dot de>
- To: mtall dot qld at gmail dot com
- Cc: gcc at gcc dot gnu dot org
- Date: Wed, 12 Nov 2008 11:23:42 +0100
- Subject: Re: bug in GCC or C++ standard ?
If all members of the union are const, why don't you just make the union
itself const?
class my_class_2
{
const union
{
int x;
int y;
};
my_class_2() : x(0) {}
};
--
René Bürgel
Software Engineer
Unicontrol Systemtechnik GmbH
OT Dittersbach
Sachsenburger Weg 34
09669 Frankenberg
Tel.: 03 72 06/ 88 73 - 19
Fax: 03 72 06/ 88 73 - 60
E-Mail: r.buergel@unicontrol.de
Internet: www.unicontrol.de
Unicontrol Systemtechnik GmbH
Geschäftsführer: Dipl.-Ing. Siegfried Heinze
Sitz der Gesellschaft: Frankenberg
Registergericht: Amtsgericht Chemnitz, HRB 15 475