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

Re: Possible invalid code - GCC 4.8/5.1.

2015-06-17 Thread Joseph Myers
See bug 63944 and DR#413 regarding such cases. -- Joseph S. Myers jos...@codesourcery.com

Re: Possible invalid code - GCC 4.8/5.1.

2015-06-17 Thread Jonathan Wakely
On 17 June 2015 at 09:16, Krzysztof Hałasa wrote: > 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

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};