id,summary,reporter,owner,description,type,status,milestone,component,version,severity,resolution,keywords,cc 291,with constructor not allowed in union,nobody,nobody,"{{{ I get error - with '..' constructor not allowed in union, when I compile the following code in gcc. Any method for overcoming this kind of problem. The code is like this. Struct X { union ut1 { struct st1 { int i1; long l1; } s1; struct st2 { char c1; double d1; } s2; X() {} // g++ gives error if constructor is present. }; Struct Y { int i; union ut3 { X x; // member 'X Y::ut3::x' with constructor // not allowed in union. int i1; } u3; Y () { i = 0; } }; int main() { Y y; } }}}",Support Requests,deleted,,None,None,,None,,