https://issues.dlang.org/show_bug.cgi?id=12719
Issue ID: 12719
Summary: struct.c:705: virtual void
StructDeclaration::semantic(Scope*): Assertion `parent
&& parent == sc->parent' failed.
Product: D
Version: D2
Hardware: x86_64
OS: Linux
Status: NEW
Severity: regression
Priority: P1
Component: DMD
Assignee: [email protected]
Reporter: [email protected]
Works with 2.065.
---
cat > test.d << code
struct A
{
B!int b();
}
struct B(T)
{
A a;
void m()
{
auto v = B!T.init;
}
}
code
dmd -c test.d
---
dmd: struct.c:705: virtual void StructDeclaration::semantic(Scope*): Assertion
`parent && parent == sc->parent' failed.
Aborted (core dumped)
---
--