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: [email protected]
Reporter: [email protected]
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.