[Issue 12984] "Cannot interpret [template] at compile time" depending on order of declaration

2015-03-30 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=12984

Nils  changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution|--- |FIXED

--- Comment #1 from Nils  ---
fixed by
https://github.com/D-Programming-Language/dmd/commit/75ffb6305b38edb05e4f132de7795e93df75a579

--


[Issue 12984] "Cannot interpret [template] at compile time" depending on order of declaration

2015-03-30 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=12984

Nils  changed:

   What|Removed |Added

   Keywords||ice
 Status|RESOLVED|REOPENED
 Resolution|FIXED   |---
   Severity|normal  |regression

--- Comment #2 from Nils  ---
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/a7bdba47f09f7dba2fbbc6a3d91d8ba110e7
https://github.com/D-Programming-Language/dmd/pull/4457

--