February 28, 2012 [Issue 7607] New: ICE(e2ir.c) with -inline, opApply, a template, multiple functions | ||||
---|---|---|---|---|
| ||||
http://d.puremagic.com/issues/show_bug.cgi?id=7607 Summary: ICE(e2ir.c) with -inline, opApply, a template, multiple functions Product: D Version: D2 Platform: All OS/Version: All Status: NEW Keywords: ice Severity: normal Priority: P2 Component: DMD AssignedTo: nobody@puremagic.com ReportedBy: mailme+d@nilsb.dyndns.org --- Comment #0 from Nils <mailme+d@nilsb.dyndns.org> 2012-02-28 13:31:02 PST --- struct Iter { int opApply(int delegate(ref int)) { return 0; } } version(inlinec) { // see below } else { void f() body { g(Iter()); // without this call: no error } } void g(S = void)(Iter i) { // without the template: no error foreach(_; i) { // without the loop: no error f(); // without this call: no error } } /* $ dmd -c -inline test.d g(S = void) Internal error: e2ir.c 688 */ //This may be a different issue or just a consequence of the former ICE: version(inlinec) { void f() out {} body { g(Iter()); } void main() { f(); } } /* $ dmd -c -inline test.d -version=inlinec Statement::doInline() __returnLabel: { } dmd: inline.c:469: virtual Expression* Statement::doInline(InlineDoState*): Assertion `0' failed. */ -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
January 06, 2013 [Issue 7607] ICE(e2ir.c) with -inline, opApply, a template, multiple functions | ||||
---|---|---|---|---|
| ||||
Posted in reply to Nils | http://d.puremagic.com/issues/show_bug.cgi?id=7607 Nils <nilsbossung@googlemail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |WORKSFORME --- Comment #1 from Nils <nilsbossung@googlemail.com> 2013-01-06 08:22:42 PST --- issue disappeared in 2.061 -- 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