Bug 10887 – Inheriting class template with subclass field crashes DMD
Status
RESOLVED
Resolution
DUPLICATE
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2013-08-24T19:54:00Z
Last change time
2013-11-20T21:40:46Z
Assigned to
nobody
Creator
luis
Comments
Comment #0 by luis — 2013-08-24T19:54:40Z
The following pruned test case crashes DMD:
class T() { }
class A : T!(A.foo) { }
The original goal was something like this, which also crashes:
class T(E) {}
class A : T!(A.I)
{
interface I { }
}
as opposed to the following, which works:
class T(E) { }
class A : T!(A) { }
or the following, which also works:
class T(E) { }
interface I { }
class A : T!(I) { }
Comment #1 by andrej.mitrovich — 2013-08-24T20:20:12Z
Appears to be fixed in git-head.
Comment #2 by luis — 2013-11-20T08:43:12Z
(In reply to comment #1)
> Appears to be fixed in git-head.
Can you please include a test, to prevent regressions? (it not, I'll try to do it when I find the time)
Comment #3 by andrej.mitrovich — 2013-11-20T09:04:59Z
(In reply to comment #2)
> (In reply to comment #1)
> > Appears to be fixed in git-head.
>
> Can you please include a test, to prevent regressions? (it not, I'll try to do
> it when I find the time)
There might already be a test-case if this is a duplicate report, but I don't know for sure.
Comment #4 by luis — 2013-11-20T09:17:07Z
(In reply to comment #3)
> There might already be a test-case if this is a duplicate report, but I don't
> know for sure.
Maybe the fix was because of Issue 11518? In any case, whatever the fix was, the respective regression test might not include the cases covered by this bug, so perhaps one regression test for this one should be included, if in doubt?
Comment #5 by k.hara.pg — 2013-11-20T21:40:46Z
This is a dup of bug 10616.
*** This issue has been marked as a duplicate of issue 10616 ***