Thread overview
[Issue 12984] [REG2.068a] ICE on forward reference of derived class from other instantiated class
[Issue 12984] "Cannot interpret [template] at compile time" depending on order of declaration
Mar 30, 2015
Nils
Mar 30, 2015
Nils
Apr 01, 2015
Kenji Hara
Apr 01, 2015
Kenji Hara
March 30, 2015
https://issues.dlang.org/show_bug.cgi?id=12984

Nils <nilsbossung@googlemail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

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

--
March 30, 2015
https://issues.dlang.org/show_bug.cgi?id=12984

Nils <nilsbossung@googlemail.com> changed:

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

--- Comment #2 from Nils <nilsbossung@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

--
April 01, 2015
https://issues.dlang.org/show_bug.cgi?id=12984

Kenji Hara <k.hara.pg@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@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

--
April 01, 2015
https://issues.dlang.org/show_bug.cgi?id=12984

Kenji Hara <k.hara.pg@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |pull

--
April 01, 2015
https://issues.dlang.org/show_bug.cgi?id=12984

--- Comment #4 from github-bugzilla@puremagic.com ---
Commits pushed to master at https://github.com/D-Programming-Language/dmd

https://github.com/D-Programming-Language/dmd/commit/ec6df46675f8de0110c6cdc7a85d4066310a91fa
fix Issue 12984 - ICE on forward reference of derived class from other
instantiated class

https://github.com/D-Programming-Language/dmd/commit/2a83a40246dee806b04465bd424d41ac9f78349f Merge pull request #4537 from 9rnsr/fix12984

[REG2.068a] Issue 12984 - ICE on forward reference of derived class from other instantiated class

--
April 01, 2015
https://issues.dlang.org/show_bug.cgi?id=12984

github-bugzilla@puremagic.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|REOPENED                    |RESOLVED
         Resolution|---                         |FIXED

--
April 01, 2015
https://issues.dlang.org/show_bug.cgi?id=12984

--- Comment #5 from github-bugzilla@puremagic.com ---
Commit pushed to master at https://github.com/D-Programming-Language/dmd

https://github.com/D-Programming-Language/dmd/commit/302d42186a30452ddb0c7bd02f4f8c682a8f4c93 [Fix] Fix incorrect test for issue 12984.

Causing commit: 8efa502a209c64a75f682956cab0b3647737c614.

--
June 17, 2015
https://issues.dlang.org/show_bug.cgi?id=12984

--- Comment #6 from github-bugzilla@puremagic.com ---
Commits pushed to stable at https://github.com/D-Programming-Language/dmd

https://github.com/D-Programming-Language/dmd/commit/ec6df46675f8de0110c6cdc7a85d4066310a91fa
fix Issue 12984 - ICE on forward reference of derived class from other
instantiated class

https://github.com/D-Programming-Language/dmd/commit/2a83a40246dee806b04465bd424d41ac9f78349f Merge pull request #4537 from 9rnsr/fix12984

https://github.com/D-Programming-Language/dmd/commit/302d42186a30452ddb0c7bd02f4f8c682a8f4c93 [Fix] Fix incorrect test for issue 12984.

--