Re: Possible invalid code - GCC 4.8/5.1.

2015-06-18 Thread Krzysztof Hałasa
Joseph Myers writes: > See bug 63944 and DR#413 regarding such cases. Right, it's the same bug. Thank you. -- Krzysztof Halasa Industrial Research Institute for Automation and Measurements PIAP Al. Jerozolimskie 202, 02-486 Warsaw, Poland

Possible invalid code - GCC 4.8/5.1.

2015-06-17 Thread Krzysztof Hałasa
Hi, I wonder if the following is a bug: #include int main(void) { struct str { struct a { int a1, a2; } a; }; struct str src = {.a = {.a1 = 1, .a2 = 2}}; struct str dest = {.a = src.a, .a.a2 = 3};