Thread overview
[Issue 14833] [REG2.065] Nested delegates problem
[Issue 14833] Nested delegates problem
Sep 01, 2015
Vladimir Panteleev
Sep 01, 2015
Vladimir Panteleev
Sep 01, 2015
Kenji Hara
September 01, 2015
https://issues.dlang.org/show_bug.cgi?id=14833

Vladimir Panteleev <thecybershadow@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |thecybershadow@gmail.com
           Hardware|x86                         |All
                 OS|Windows                     |All
           Severity|normal                      |regression

--- Comment #1 from Vladimir Panteleev <thecybershadow@gmail.com> ---
This seems to be a regression.

Introduced in https://github.com/D-Programming-Language/dmd/pull/2851

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

Vladimir Panteleev <thecybershadow@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|Nested delegates problem    |[REG2.065] Nested delegates
                   |                            |problem

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

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

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

--- Comment #2 from Kenji Hara <k.hara.pg@gmail.com> ---
(In reply to Vladimir Panteleev from comment #1)
> This seems to be a regression.
> 
> Introduced in https://github.com/D-Programming-Language/dmd/pull/2851

The root issue was incomplete compiler implementation for context inference, which is same with the root of issue 14973, and it has been properly fixed in 2.068.1-b2.

---

OT: Why this issue and issue 14973 had introduced in different versions?

The root issue was hidden until 2.065, by other bug in template instantiation order.

The instantiation bug had partially fixed by PR 2851 in 2.065, and then completely fixed in 2.068.0 by PR 4464.

By the partial fix in 2.065, the case code in this issue had been changed to fail to compile. And then, by the complete fix in 2.068.0, the case in issue 14973 had been changed to fail to compile.

--