[Issue 14424] New: dmd crashes with __traits(getUnitTests)
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Tue Apr 7 13:28:00 PDT 2015
https://issues.dlang.org/show_bug.cgi?id=14424
Issue ID: 14424
Summary: dmd crashes with __traits(getUnitTests)
Product: D
Version: D2
Hardware: x86_64
OS: Linux
Status: NEW
Severity: critical
Priority: P1
Component: DMD
Assignee: nobody at puremagic.com
Reporter: atila.neves at gmail.com
To reproduce (I tried this under /tmp and it didn't work, but under
~/coding/d/crash it did):
example/example_crash.d:
void main() {
import tests.pass.crash;
__traits(getUnitTests, tests.pass.crash);
}
tests/pass/crash.d:
module tests.pass.crash;
unittest { }
Run `dmd -v -c -unittest example/example_crash.d`:
binary dmd
version v2.067
config /etc/dmd.conf
parse example_crash
importall example_crash
import object (/usr/include/dlang/dmd/object.di)
semantic example_crash
entry main example/example_crash.d
semantic2 example_crash
semantic3 example_crash
import tests.pass.crash (tests/pass/crash.d)
zsh: segmentation fault (core dumped) dmd -v -c -unittest
example/example_crash.d
--
More information about the Digitalmars-d-bugs
mailing list