Thread overview | |||||
---|---|---|---|---|---|
|
May 19, 2012 [Issue 8117] New: Cannot initialize struct member without default constructor | ||||
---|---|---|---|---|
| ||||
http://d.puremagic.com/issues/show_bug.cgi?id=8117 Summary: Cannot initialize struct member without default constructor Product: D Version: D2 Platform: All OS/Version: All Status: NEW Severity: major Priority: P2 Component: DMD AssignedTo: nobody@puremagic.com ReportedBy: wfunction@hotmail.com --- Comment #0 from wfunction@hotmail.com 2012-05-18 17:02:05 PDT --- struct S { @disable this(); this(int) { } } class T { S s = S(1); } void main() { new T(); } Error: default construction is disabled for type T ^ wat? Why is it looking for a default constructor? -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
May 19, 2012 [Issue 8117] Cannot initialize struct member without default constructor | ||||
---|---|---|---|---|
| ||||
Posted in reply to wfunction@hotmail.com | http://d.puremagic.com/issues/show_bug.cgi?id=8117 --- Comment #1 from wfunction@hotmail.com 2012-05-18 17:05:39 PDT --- Possibly related: http://d.puremagic.com/issues/show_bug.cgi?id=8118 -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
July 27, 2012 [Issue 8117] Cannot initialize struct member without default constructor | ||||
---|---|---|---|---|
| ||||
Posted in reply to wfunction@hotmail.com | http://d.puremagic.com/issues/show_bug.cgi?id=8117 Simen Kjaeraas <simen.kjaras@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |simen.kjaras@gmail.com Resolution| |DUPLICATE --- Comment #2 from Simen Kjaeraas <simen.kjaras@gmail.com> 2012-07-27 15:38:31 PDT --- *** This issue has been marked as a duplicate of issue 7121 *** -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
Copyright © 1999-2021 by the D Language Foundation