[Issue 12984] [REG2.068a] ICE on forward reference of derived class from other instantiated class
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Tue Mar 31 17:45:33 PDT 2015
https://issues.dlang.org/show_bug.cgi?id=12984
Kenji Hara <k.hara.pg at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Hardware|x86_64 |All
Summary|"Cannot interpret |[REG2.068a] ICE on forward
|[template] at compile time" |reference of derived class
|depending on order of |from other instantiated
|declaration |class
OS|Linux |All
--- Comment #3 from Kenji Hara <k.hara.pg at gmail.com> ---
(In reply to Nils from comment #2)
> The test case fails again. Segfaults now.
>
> The test code can be reduced to this for the segfault:
> ---
> cat > test.d << code
> class B {alias MyD = D!int;}
> class C : B {}
> class D(T) {alias MyE = E!float;}
> class E(T) : D!int
> {
> void m() {new C;}
> }
> code
> dmd -c -o- test.d
> ---
> Segmentation fault (core dumped)
> ---
>
> (Re-)introduced by
> https://github.com/D-Programming-Language/dmd/commit/
> a7bdba471111f09f7dba2fbbc6a3d91d8ba110e7
> https://github.com/D-Programming-Language/dmd/pull/4457
https://github.com/D-Programming-Language/dmd/pull/4537
--
More information about the Digitalmars-d-bugs
mailing list