[Issue 2469] arbitrary struct accepted as struct initializer
http://d.puremagic.com/issues/show_bug.cgi?id=2469 Christian Kamm kamm-removet...@incasoftware.de changed: What|Removed |Added CC||jarrett.billings...@gmail.c ||om --- Comment #1 from Christian Kamm kamm-removet...@incasoftware.de 2009-06-17 23:19:21 PDT --- *** Issue 3076 has been marked as a duplicate of this issue. *** -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
[Issue 3076] ICE[ztc\cod1.c:1673] - Compiler doesn't care about struct types in initializers
http://d.puremagic.com/issues/show_bug.cgi?id=3076 Christian Kamm kamm-removet...@incasoftware.de changed: What|Removed |Added Status|NEW |RESOLVED CC||kamm-removet...@incasoftwar ||e.de Resolution||DUPLICATE --- Comment #1 from Christian Kamm kamm-removet...@incasoftware.de 2009-06-17 23:19:21 PDT --- *** This issue has been marked as a duplicate of issue 2469 *** -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
[Issue 2469] arbitrary struct accepted as struct initializer
http://d.puremagic.com/issues/show_bug.cgi?id=2469 Christian Kamm kamm-removet...@incasoftware.de changed: What|Removed |Added Keywords||ice-on-invalid-code --- Comment #2 from Christian Kamm kamm-removet...@incasoftware.de 2009-06-17 23:20:41 PDT --- Jarett found this pretty ICE in ztc\cod1.c:1673: This can lead to the ICE mentioned in the description, if the source type is smaller than the destination, at least for some values of smaller, *and* the source is a function call. The following, for instance, causes it: struct Small { uint x; } struct Large { uint x, y, z; } Small foo() { return Small(); } void main() { Large l = foo(); } // bang! -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
[Issue 2469] arbitrary struct accepted as struct initializer
http://d.puremagic.com/issues/show_bug.cgi?id=2469 --- Comment #3 from Jarrett Billingsley jarrett.billings...@gmail.com 2009-06-18 06:45:55 PDT --- Ah poop. I was searching for ICEs and never even came across this one :) -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
[Issue 3077] New: crash exiting main() without result code
http://d.puremagic.com/issues/show_bug.cgi?id=3077 Summary: crash exiting main() without result code Product: D Version: unspecified Platform: Other OS/Version: Linux Status: NEW Severity: normal Priority: P2 Component: DMD AssignedTo: nob...@puremagic.com ReportedBy: and...@metalanguage.com int main(string[] args) { try {} catch(Exception) { return 1; } } Running this program will cause a segmentation fault. Adding a return 0; at the end fixes it. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
[Issue 3078] New: NaN reported as equal to zero
http://d.puremagic.com/issues/show_bug.cgi?id=3078 Summary: NaN reported as equal to zero Product: D Version: unspecified Platform: Other OS/Version: Linux Status: NEW Severity: blocker Priority: P1 Component: DMD AssignedTo: nob...@puremagic.com ReportedBy: and...@metalanguage.com import std.math; void main() { double x[] = new double[1]; double a = x[0]; assert(a == 0); assert(x[0] == 0); assert(isnan(a)); assert(isnan(x[0])); } No assert fails in the code above - and one hour is gone off my life. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---