[Bug 194] New: ICE in expand_intrinsic_arith when passing ref bool parameter
via D.gnu
d.gnu at puremagic.com
Tue Jul 7 04:38:06 PDT 2015
http://bugzilla.gdcproject.org/show_bug.cgi?id=194
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 at gdcproject.org
Reporter: ibuclaw at 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 = false;
writeln(test(overflow));
writeln(overflow);
stdin.readln();
}
---
Causes:
---
main.d: In function ‘test’:
main.d:8:5: internal compiler error: in expand_intrinsic_arith, at
d/d-codegen.cc:2422
return adds(1, 1, overflow);
^
--
You are receiving this mail because:
You are watching all bug changes.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puremagic.com/pipermail/d.gnu/attachments/20150707/0da951ec/attachment.html>
More information about the D.gnu
mailing list