Thread overview | |||||||
---|---|---|---|---|---|---|---|
|
August 17, 2011 [Issue 6516] New: [2.055 beta] ICE: assert constfold.c(721) global.errors | ||||
---|---|---|---|---|
| ||||
http://d.puremagic.com/issues/show_bug.cgi?id=6516 Summary: [2.055 beta] ICE: assert constfold.c(721) global.errors 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: cbkbbejeap@mailinator.com --- Comment #0 from Nick Sabalausky <cbkbbejeap@mailinator.com> 2011-08-16 22:57:45 PDT --- dstring foo() { return cast(dstring) new dchar[](0); } static assert(foo() == ""d); -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
August 17, 2011 [Issue 6516] [2.055 beta] ICE: assert constfold.c(721) global.errors | ||||
---|---|---|---|---|
| ||||
Posted in reply to Nick Sabalausky | http://d.puremagic.com/issues/show_bug.cgi?id=6516 --- Comment #1 from Nick Sabalausky <cbkbbejeap@mailinator.com> 2011-08-16 23:41:16 PDT --- I think this may be another manifestation of the same bug: dstring foo() { auto result = new dchar[](1); result[0..1] = "a"d; return cast(dstring)result; } static assert(foo() == "a"d); Result: assert interpret.c(2831) sz == newstr->sz -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
August 24, 2011 [Issue 6516] Regression(2.055 beta) [CTFE] ICE(constfold.c) involving new dchar[] | ||||
---|---|---|---|---|
| ||||
Posted in reply to Nick Sabalausky | http://d.puremagic.com/issues/show_bug.cgi?id=6516 Walter Bright <bugzilla@digitalmars.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |bugzilla@digitalmars.com Resolution| |FIXED --- Comment #2 from Walter Bright <bugzilla@digitalmars.com> 2011-08-24 12:57:52 PDT --- https://github.com/D-Programming-Language/dmd/commit/4fa620ba567bdf1c9be09d46d089a9fc364cc9d2 https://github.com/D-Programming-Language/dmd/commit/8f24469bd1cc3b6b33fd539ccf9d8dab3135156f -- 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