Re: bug in GCC or C++ standard ?

2008-11-12 Thread René Bürgel
Mark Tall schrieb: On 12/11/2008, René Bürgel <[EMAIL PROTECTED]> wrote: If all members of the union are const, why don't you just make the union itself const? The const for the union seems to be ignored I'd say, that's the real bug, at least from my point of vi

Re: bug in GCC or C++ standard ?

2008-11-12 Thread René Bürgel
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