Thread overview | |||||
---|---|---|---|---|---|
|
July 07, 2011 [Issue 6264] New: ICE on testing opSlice in static if | ||||
---|---|---|---|---|
| ||||
http://d.puremagic.com/issues/show_bug.cgi?id=6264 Summary: ICE on testing opSlice in static if Product: D Version: D2 Platform: Other OS/Version: Windows Status: NEW Keywords: ice-on-valid-code Severity: regression Priority: P2 Component: DMD AssignedTo: nobody@puremagic.com ReportedBy: dsimcha@yahoo.com --- Comment #0 from David Simcha <dsimcha@yahoo.com> 2011-07-07 06:17:40 PDT --- void main() { double[] x; auto y = Result(0, x.length); static if(is(typeof(x[] = y[]))) {} // This line needs to be there. } static struct Result { this(size_t current, size_t pastLast) {} auto opSlice() { return this; } } Error message: Assertion failure: 't1n && t2n' on line 9612 in file 'expression.c' -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
July 10, 2011 [Issue 6264] ICE on testing opSlice in static if | ||||
---|---|---|---|---|
| ||||
Posted in reply to David Simcha | http://d.puremagic.com/issues/show_bug.cgi?id=6264 yebblies <yebblies@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |patch CC| |yebblies@gmail.com --- Comment #1 from yebblies <yebblies@gmail.com> 2011-07-10 14:32:18 EST --- https://github.com/D-Programming-Language/dmd/pull/224 The static if(is(typeof( is unnecessary. The compiler will assert rather than give an error. This was caused by the fix to bug 5284. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
July 10, 2011 [Issue 6264] ICE on testing opSlice in static if | ||||
---|---|---|---|---|
| ||||
Posted in reply to David Simcha | http://d.puremagic.com/issues/show_bug.cgi?id=6264 yebblies <yebblies@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #2 from yebblies <yebblies@gmail.com> 2011-07-11 00:39:18 EST --- https://github.com/D-Programming-Language/dmd/commit/0d100fb86205ff839e50b49625e821cb1052a43b -- 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