[Issue 18232] Union methods fail to initialize local variables to .init
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Mon Jan 15 06:25:44 UTC 2018
https://issues.dlang.org/show_bug.cgi?id=18232
--- Comment #6 from github-bugzilla at puremagic.com ---
Commits pushed to master at https://github.com/dlang/dmd
https://github.com/dlang/dmd/commit/29c1e309be359f871d4052c025f7f3144005d092
Fix issue 18232: local vars in union member functions needs initializer.
The `isunion` condition is too broad, because it also excludes local
variables declared inside union member functions. Moreoever, it is not
necessary, because the `fd` condition later on already excludes union
fields, since they would not be inside a function declaration.
https://github.com/dlang/dmd/commit/4cf228eb33ee8e2b4b6856fa7c08990217039ac7
Merge pull request #7687 from quickfur/issue18232
Fix issue 18232: local vars in union member functions needs initializer.
merged-on-behalf-of: Sebastian Wilzbach <sebi.wilzbach at gmail.com>
--
More information about the Digitalmars-d-bugs
mailing list