[Issue 12061] New: Refused array append with struct with void field
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sun Feb 2 08:07:00 PST 2014
https://d.puremagic.com/issues/show_bug.cgi?id=12061
Summary: Refused array append with struct with void field
Product: D
Version: D2
Platform: x86
OS/Version: Windows
Status: NEW
Keywords: rejects-valid
Severity: regression
Priority: P2
Component: DMD
AssignedTo: nobody at puremagic.com
ReportedBy: bearophile_hugs at eml.cc
--- Comment #0 from bearophile_hugs at eml.cc 2014-02-02 08:06:57 PST ---
struct Foo { int a = void; }
void main() {
Foo[] arr;
arr ~= Foo();
}
dmd 2.065.0b2 gives me:
...>dmd -O test.d
test.d(4): Error: variable _TMP0 used before set
--
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list