[Issue 20143] New: ICE in optimizer on real 0/0 returned as double
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Mon Aug 19 13:21:26 UTC 2019
https://issues.dlang.org/show_bug.cgi?id=20143
Issue ID: 20143
Summary: ICE in optimizer on real 0/0 returned as double
Product: D
Version: D2
Hardware: x86
OS: Windows
Status: NEW
Keywords: ice
Severity: enhancement
Priority: P1
Component: dmd
Assignee: nobody at puremagic.com
Reporter: simen.kjaras at gmail.com
The below code crashes the compiler with "Internal error: dmd/backend/evalu8.c
1028":
// typeof(x) is irrelevant, but it must take at least one parameter
real fun(real x) { return 0; }
double bug()
{
// value passed to fun is irrelevant
return 0 / fun(0);
}
void main()
{
}
Source discussion:
https://forum.dlang.org/thread/ijuyxswuijcmvkvmhlpi@forum.dlang.org
--
More information about the Digitalmars-d-bugs
mailing list