digitalmars.D.bugs - [Issue 2555] New: Segfault using invalid tuple property in a declaration
- d-bugmail puremagic.com (27/27) Jan 05 2009 http://d.puremagic.com/issues/show_bug.cgi?id=2555
- d-bugmail puremagic.com (11/11) Apr 02 2009 http://d.puremagic.com/issues/show_bug.cgi?id=2555
- d-bugmail puremagic.com (9/9) Apr 03 2009 http://d.puremagic.com/issues/show_bug.cgi?id=2555
http://d.puremagic.com/issues/show_bug.cgi?id=2555 Summary: Segfault using invalid tuple property in a declaration Product: D Version: 1.038 Platform: PC OS/Version: Windows Status: NEW Keywords: ice-on-invalid-code Severity: normal Priority: P2 Component: DMD AssignedTo: bugzilla digitalmars.com ReportedBy: clugdbug yahoo.com.au ----- int foo(T...)(char [T.sizeof] x) { return 0; } int c = foo!(int, int)("yy"); ----- It also segfaults if the declaration is in a function, so it's not a CTFE issue. It segfaults if any invalid property is used. ---- int foo(T...)(char [T.z] x) { return 0; } void main() { int c = foo!(int, int)("yy"); } --
Jan 05 2009
http://d.puremagic.com/issues/show_bug.cgi?id=2555 clugdbug yahoo.com.au changed: What |Removed |Added ---------------------------------------------------------------------------- Summary|Segfault using invalid tuple|ICE using invalid tuple |property in a declaration |property in a declaration No longer segfaults. Gives correct error messages on DMD2.027, while on DMD1.042 it ICEs: Assertion failure: 'i < parameters->dim' on line 806 in file 'template.c' --
Apr 02 2009
http://d.puremagic.com/issues/show_bug.cgi?id=2555 clugdbug yahoo.com.au changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |DUPLICATE *** This bug has been marked as a duplicate of 2229 *** --
Apr 03 2009