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

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Mon Mar 30 15:34:11 PDT 2015


https://issues.dlang.org/show_bug.cgi?id=12984

Nils <nilsbossung at googlemail.com> changed:

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

--- Comment #2 from Nils <nilsbossung at googlemail.com> ---
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

--


More information about the Digitalmars-d-bugs mailing list