Thread overview | |||||
---|---|---|---|---|---|
|
September 19, 2017 [Issue 1432] Bogus "overlapping initialization" error with structs, unions, and member initializers | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=1432 Simen Kjaeraas <simen.kjaras@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |simen.kjaras@gmail.com Resolution|--- |FIXED --- Comment #8 from Simen Kjaeraas <simen.kjaras@gmail.com> --- This works in 2.075.1. -- |
December 26, 2021 [Issue 1432] Bogus "overlapping initialization" error with structs, unions, and member initializers | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=1432 Iain Buclaw <ibuclaw@gdcproject.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |REOPENED CC| |ibuclaw@gdcproject.org Resolution|FIXED |--- --- Comment #9 from Iain Buclaw <ibuclaw@gdcproject.org> --- This issue seems to be closed for the wrong reason. >From runnable/structlit.d: --- union U7727A3 { int i; double d = 2.5; } union U7727B3 { double d; int i = 123; } void test7727() { import core.stdc.math : isnan; // Blocked by https://issues.dlang.org/show_bug.cgi?id=1432 { U7727A3 u; assert(u.d == 2.5); } { U7727A3 u = { i: 1024 }; assert(u.i == 1024); } { U7727A3 u = { d: 1.225 }; assert(u.d == 1.225); } static assert(!__traits(compiles, { U7727A3 u = { i: 1024, d: 1.225 }; } )); // Blocked by https://issues.dlang.org/show_bug.cgi?id=1432 { U7727B3 u; assert(u.i == 123); } { U7727B3 u = { i: 1024 }; assert(u.i == 1024); } { U7727B3 u = { d: 1.225 }; assert(u.d == 1.225); } static assert(!__traits(compiles, { U7727B3 u = { i: 1024, d: 1.225 }; } )); } -- |
December 17, 2022 [Issue 1432] Bogus "overlapping initialization" error with structs, unions, and member initializers | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=1432 Iain Buclaw <ibuclaw@gdcproject.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Priority|P2 |P3 -- |
Copyright © 1999-2021 by the D Language Foundation