Bug 15760 – Segfault when compiling when using __gshared and selective import.
Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
x86_64
OS
Linux
Creation time
2016-03-04T19:39:00Z
Last change time
2016-03-24T23:52:35Z
Keywords
ice
Assigned to
nobody
Creator
asistentedeprincipios2
Comments
Comment #0 by asistentedeprincipios2 — 2016-03-04T19:39:15Z
#cat alice.d
import bob : Foo;
struct Bar {
__gshared Foo foo;
}
#cat bob.d
import alice;
struct Foo {
Bar a;
}
Compiling with dmd, gdc or ldc causes a segmentation fault.
'dmd alice.d bob.d' segfaults, but 'dmd bob.d alice.d' doesn't.
Changing the first import from 'bob : Foo' to just 'bob' stops the segfault.
Also happens if foo is a pointer but if boo is one, it doesn't have the problem.
Comment #1 by asistentedeprincipios2 — 2016-03-04T19:40:44Z