[Issue 15760] New: Segfault when compiling when using __gshared and selective import.
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Fri Mar 4 11:39:15 PST 2016
https://issues.dlang.org/show_bug.cgi?id=15760
Issue ID: 15760
Summary: Segfault when compiling when using __gshared and
selective import.
Product: D
Version: D2
Hardware: x86_64
OS: Linux
Status: NEW
Severity: normal
Priority: P1
Component: dmd
Assignee: nobody at puremagic.com
Reporter: asistentedeprincipios2 at gmail.com
#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.
--
More information about the Digitalmars-d-bugs
mailing list