Jump to page: 1 2
Thread overview
[Issue 17290] DMD crash when f.T f(){}
Apr 01, 2017
ag0aep6g@gmail.com
Apr 03, 2017
RazvanN
Apr 03, 2017
ag0aep6g@gmail.com
Mar 01, 2019
Basile-z
Mar 01, 2019
Basile-z
[Issue 17290] DMD crash due to circular reference in function return type
Mar 02, 2019
Basile-z
Mar 02, 2019
Dlang Bot
Mar 02, 2019
Basile-z
Mar 02, 2019
Dlang Bot
Jun 16, 2019
Dlang Bot
Mar 21, 2020
Basile-z
April 01, 2017
https://issues.dlang.org/show_bug.cgi?id=17290

ag0aep6g@gmail.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |ice
                 CC|                            |ag0aep6g@gmail.com

--
April 03, 2017
https://issues.dlang.org/show_bug.cgi?id=17290

RazvanN <razvan.nitu1305@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |razvan.nitu1305@gmail.com

--- Comment #1 from RazvanN <razvan.nitu1305@gmail.com> ---
Could you please be more explicit?

--
April 03, 2017
https://issues.dlang.org/show_bug.cgi?id=17290

--- Comment #2 from ag0aep6g@gmail.com ---
(In reply to RazvanN from comment #1)
> Could you please be more explicit?

Try to compile the given code. dmd crashes with a segmentation fault. It shouldn't crash, but show an error message.

--
March 01, 2019
https://issues.dlang.org/show_bug.cgi?id=17290

Basile-z <b2.temp@gmx.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |b2.temp@gmx.com

--- Comment #3 from Basile-z <b2.temp@gmx.com> ---
There's a cycle when trying to solve T. Somewhere the ".inuse" member of the declaration of function "f" must be incremented and later decremented to detect the cycle.

Just gotta find the right place, using the backtrace of the ICE, because this case is tricky. You can fix it at several place but then it breaks the test suite or even some stuff in druntime.

--
March 01, 2019
https://issues.dlang.org/show_bug.cgi?id=17290

Basile-z <b2.temp@gmx.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Hardware|x86                         |All
                 OS|Windows                     |All

--
March 02, 2019
https://issues.dlang.org/show_bug.cgi?id=17290

Basile-z <b2.temp@gmx.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|DMD crash when f.T f(){}    |DMD crash due to circular
                   |                            |reference in function
                   |                            |return type

--
March 02, 2019
https://issues.dlang.org/show_bug.cgi?id=17290

Dlang Bot <dlang-bot@dlang.rocks> changed:

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

--- Comment #4 from Dlang Bot <dlang-bot@dlang.rocks> ---
@Basile-z created dlang/dmd pull request #9403 "fix issue 17290 - DMD crash due to circular reference in function return type" fixing this issue:

- fix issue 17290 - DMD crash due to circular reference in function return type

https://github.com/dlang/dmd/pull/9403

--
March 02, 2019
https://issues.dlang.org/show_bug.cgi?id=17290

Basile-z <b2.temp@gmx.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |dhasenan@gmail.com

--- Comment #5 from Basile-z <b2.temp@gmx.com> ---
*** Issue 17140 has been marked as a duplicate of this issue. ***

--
March 02, 2019
https://issues.dlang.org/show_bug.cgi?id=17290

Dlang Bot <dlang-bot@dlang.rocks> changed:

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

--- Comment #6 from Dlang Bot <dlang-bot@dlang.rocks> ---
dlang/dmd pull request #9403 "fix issue 17290 - DMD crash due to circular reference in function return type" was merged into master:

- e10fb38ed81aa27fe688cef0c36f8cc3da2948dc by Basile Burg:
  fix issue 17290 - DMD crash due to circular reference in function return type

https://github.com/dlang/dmd/pull/9403

--
June 16, 2019
https://issues.dlang.org/show_bug.cgi?id=17290

--- Comment #7 from Dlang Bot <dlang-bot@dlang.rocks> ---
dlang/dmd pull request #10046 "[dmd-cxx] Backport semanticRun refactoring and recursive semantic SEGV bug fixes" was merged into dmd-cxx:

- d7dc83daead6b5ac8413e55fc3cff706ead7da18 by Basile Burg:
  fix issue 17290 - DMD crash due to circular reference in function return type

https://github.com/dlang/dmd/pull/10046

--
« First   ‹ Prev
1 2