Bug 18085 – Segmentation fault: Error: variable __gate forward referenced

Status
RESOLVED
Resolution
WORKSFORME
Severity
major
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2017-12-15T16:58:33Z
Last change time
2023-05-09T13:24:47Z
Keywords
ice
Assigned to
No Owner
Creator
Luís Marques

Attachments

IDFilenameSummaryContent-TypeSize
1668bug.zipreduced test caseapplication/zip3312

Comments

Comment #0 by luis — 2017-12-15T16:58:33Z
Created attachment 1668 reduced test case I submit in attachment a reduced test case that crashes DMD and gives an internal error in LDC2: $ dmd -unittest a.d b.d Error: variable __gate forward referenced Segmentation fault: 11 $ ldc2 -unittest a.d b.d openmethods.d(19): Error: Internal Compiler Error: function not fully analyzed; previous unreported errors compiling openmethods.Method!("bug", "deallocator", A, B).Method._staticCtor3625?
Comment #1 by razvan.nitu1305 — 2023-05-09T13:24:47Z
I cannot reproduce this with latest master. I get successful compilation.