D.gnu - [Bug 194] New: ICE in expand_intrinsic_arith when passing ref bool
- via D.gnu (45/45) Jul 07 2015 Date: Tue, 7 Jul 2015 12:38:05 +0100
Date: Tue, 7 Jul 2015 12:38:05 +0100 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable http://bugzilla.gdcproject.org/show_bug.cgi?id=3D194 Bug ID: 194 Summary: ICE in expand_intrinsic_arith when passing ref bool parameter Product: GDC Version: development Hardware: All OS: All Status: NEW Severity: normal Priority: Normal Component: gdc Assignee: ibuclaw gdcproject.org Reporter: ibuclaw gdcproject.org Test: --- module main; import core.checkedint; import std.stdio; // This yields "internal compiler error: in expand_intrinsic_arith", etc. auto test(ref bool overflow) { return adds(1, 1, overflow); } void main(string[] args) { bool overflow =3D false; writeln(test(overflow)); writeln(overflow); stdin.readln(); } --- Causes: --- main.d: In function =E2=80=98test=E2=80=99: main.d:8:5: internal compiler error: in expand_intrinsic_arith, at d/d-codegen.cc:2422 return adds(1, 1, overflow); ^ --=20 You are receiving this mail because: You are watching all bug changes.
Jul 07 2015