Thread overview
[Issue 15253] [REG2.069.0-rc1] inliner prevent compilation
Oct 28, 2015
Rainer Schuetze
Oct 28, 2015
Marc Schütz
Oct 28, 2015
Matt Soucy
Oct 29, 2015
Martin Nowak
Oct 30, 2015
Kenji Hara
Oct 30, 2015
Kenji Hara
Oct 30, 2015
Walter Bright
October 28, 2015
https://issues.dlang.org/show_bug.cgi?id=15253

Rainer Schuetze <r.sagitario@gmx.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |r.sagitario@gmx.de

--- Comment #1 from Rainer Schuetze <r.sagitario@gmx.de> ---
On windows dmd doesn't stop compiling (or I didn't wait long enough).

Here's a reduced test case:

struct MessageType {
    MessageType[] messageTypes;

    const void toString1(scope void delegate(const(char)[]) sink)
    {
        messageTypes[0].toString1(sink);
    }
}

struct ProtoPackage {
    MessageType[] messageTypes;

    const void toString1(scope void delegate(const(char)[]) sink)
    {
        messageTypes[0].toString1(sink);
    }
}

dmd -inline -c test.d

--
October 28, 2015
https://issues.dlang.org/show_bug.cgi?id=15253

Marc Schütz <schuetzm@gmx.net> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |schuetzm@gmx.net

--- Comment #2 from Marc Schütz <schuetzm@gmx.net> ---
(In reply to Rainer Schuetze from comment #1)
> On windows dmd doesn't stop compiling (or I didn't wait long enough).

I can confirm this on Linux with your test case.

Digger traced it back to this commit:

commit 74b2b22b3fc4dd5d19ab5d7b77e13393330c866a
Author: Daniel Murphy <yebblies@gmail.com>
Date:   Fri Sep 18 00:04:55 2015 +1000

    dmd: Merge pull request #5092 from yebblies/dwarnings

    https://github.com/D-Programming-Language/dmd/pull/5092

    Remove dead code and deprecated syntax

--
October 28, 2015
https://issues.dlang.org/show_bug.cgi?id=15253

Matt Soucy <msoucy@csh.rit.edu> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |msoucy@csh.rit.edu

--
October 29, 2015
https://issues.dlang.org/show_bug.cgi?id=15253

Martin Nowak <code@dawg.eu> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |code@dawg.eu

--- Comment #3 from Martin Nowak <code@dawg.eu> ---
Seems to infinitely loop in InlineScanVisitor::inlineScan.

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

--- Comment #4 from Kenji Hara <k.hara.pg@gmail.com> ---
(In reply to Martin Nowak from comment #3)
> Seems to infinitely loop in InlineScanVisitor::inlineScan.

The regression is introduced in: https://github.com/D-Programming-Language/dmd/pull/5117

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |ice, pull
           Hardware|x86_64                      |All
                 OS|Linux                       |All

--- Comment #5 from Kenji Hara <k.hara.pg@gmail.com> ---
https://github.com/D-Programming-Language/dmd/pull/5241

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

Walter Bright <bugzilla@digitalmars.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bugzilla@digitalmars.com

--- Comment #6 from Walter Bright <bugzilla@digitalmars.com> ---
https://github.com/D-Programming-Language/dmd/pull/5243

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

github-bugzilla@puremagic.com changed:

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

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

--- Comment #7 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/d33663d0885f3fb43144295fee64eee03ff90c4f fix Issue 15253 - [REG2.069.0-rc1] inliner prevent compilation

https://github.com/D-Programming-Language/dmd/commit/e79cf30fb1500691abd8a4926be674f96f20cefb Merge pull request #5245 from MartinNowak/fix15253

fix Issue 15253 - [REG2.069.0-rc1] inliner prevent compilation

--
October 31, 2015
https://issues.dlang.org/show_bug.cgi?id=15253

--- Comment #8 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/d33663d0885f3fb43144295fee64eee03ff90c4f fix Issue 15253 - [REG2.069.0-rc1] inliner prevent compilation

https://github.com/D-Programming-Language/dmd/commit/e79cf30fb1500691abd8a4926be674f96f20cefb Merge pull request #5245 from MartinNowak/fix15253

--