Bug 16118 – ICE on double import erroneous file

Status
RESOLVED
Resolution
WORKSFORME
Severity
normal
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2016-06-03T12:49:42Z
Last change time
2018-06-13T10:09:08Z
Keywords
ice-on-invalid-code
Assigned to
No Owner
Creator
Johan Engelen

Comments

Comment #0 by jbc.engelen — 2016-06-03T12:49:42Z
It's an ICE on bad code. File c.d : ``` struct { enum E = 1; } ``` File a.d : ``` struct C { import c; } struct B(T...) { import c; } B!1 bbb; ``` Compiling a.d crashes DMD 2.071. > dmd a.d c.d(1): Error: anonymous struct can only be a part of an aggregate, not module c [1] 2913 segmentation fault dmd a.d
Comment #1 by razvan.nitu1305 — 2018-06-13T10:09:08Z
Cannot reproduce on latest master (DMD64 D Compiler v2.079.0) on ubuntu. Closing as WORKSFORME. Please reopen if ice is persistent.