Bug 15387 – slice in extern(C++) ICE's

Status
RESOLVED
Resolution
WORKSFORME
Severity
normal
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
x86_64
OS
Linux
Creation time
2015-11-29T10:06:11Z
Last change time
2018-10-22T18:18:20Z
Keywords
industry
Assigned to
No Owner
Creator
Manu

Comments

Comment #0 by turkeyman — 2015-11-29T10:06:11Z
This shouldn't crash the compiler; extern (C++) struct X { this(int[] x) {} } A helpful error message would be nice.
Comment #1 by uplink.coder — 2016-06-29T17:45:48Z
I hit the same issue. This is annoying.
Comment #2 by pro.mathias.lang — 2018-10-22T18:18:20Z
It does not crash the compiler anymore, but print ICE. See https://issues.dlang.org/show_bug.cgi?id=18716