Bug 10493 – ICE with -inline, depending on order of source files
Status
RESOLVED
Resolution
WORKSFORME
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2013-06-28T06:40:31Z
Last change time
2018-02-10T20:12:14Z
Keywords
ice
Assigned to
No Owner
Creator
Peter Neubauer
Comments
Comment #0 by peterneubauer2 — 2013-06-28T06:40:31Z
Using DMD 2.063.2, tested on Arch Linux (x86_64)
---
cat > a.d <<CODE
import std.array;
CODE
cat > b.d <<CODE
import std.algorithm : map;
void foo (int a)
{
[0].map!(b => a);
}
CODE
dmd -inline a.d b.d
---
b.d(3): Error: function b.foo compiler error, parameter 'a', bugzilla 2962?
dmd: glue.c:817: virtual void FuncDeclaration::toObjFile(int): Assertion `0' failed.
Aborted (core dumped)
---
Additional details:
- Only crashes using -inline and a.d before b.d
- a.d has to import std.anything for the error to appear
- I could only reproduce it using std.map, not just any template function
May be related to bug# 8524 and/or bug# 9399 (which is supposed to be fixed).