Thread overview
[Issue 16143] Assertion error for nested functions
Nov 09, 2022
RazvanN
Nov 09, 2022
RazvanN
Nov 09, 2022
Basile-z
Nov 10, 2022
RazvanN
Dec 17, 2022
Iain Buclaw
November 09, 2022
https://issues.dlang.org/show_bug.cgi?id=16143

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |razvan.nitu1305@gmail.com
         Resolution|---                         |WORKSFORME

--- Comment #1 from RazvanN <razvan.nitu1305@gmail.com> ---
I cannot reproduce this. The code compiles fine with the most recent version of master.

--
November 09, 2022
https://issues.dlang.org/show_bug.cgi?id=16143

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

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

--- Comment #2 from RazvanN <razvan.nitu1305@gmail.com> ---
Argh, forgot to add unittest. Still asserts.

--
November 09, 2022
https://issues.dlang.org/show_bug.cgi?id=16143

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

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

--- Comment #3 from Basile-z <b2.temp@gmx.com> ---
Do you use an older compiler ? with dmd 2.100.2 there's an error during semantics:

> /tmp/temp_7F6C1D38FB90.d:32:32: Error: function `runnable.__unittest_L35_C1.transformToInterval!(__lambda1, 1.0, double).transformToInterval` cannot get frame pointer to `runnable.__unittest_L35_C1.transform!(__lambda1, 1.0).transform.intervalPoint!(__lambda1, double).intervalPoint`

--
November 10, 2022
https://issues.dlang.org/show_bug.cgi?id=16143

--- Comment #4 from RazvanN <razvan.nitu1305@gmail.com> ---
(In reply to Basile-z from comment #3)
> Do you use an older compiler ? with dmd 2.100.2 there's an error during semantics:
> 
> > /tmp/temp_7F6C1D38FB90.d:32:32: Error: function `runnable.__unittest_L35_C1.transformToInterval!(__lambda1, 1.0, double).transformToInterval` cannot get frame pointer to `runnable.__unittest_L35_C1.transform!(__lambda1, 1.0).transform.intervalPoint!(__lambda1, double).intervalPoint`

Nope, but I did not use the -unittest switch cause I did not see the unittest.

Anyway, in git master this results in an ice.

--
December 17, 2022
https://issues.dlang.org/show_bug.cgi?id=16143

Iain Buclaw <ibuclaw@gdcproject.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P1                          |P3

--
December 13
https://issues.dlang.org/show_bug.cgi?id=16143

--- Comment #5 from dlangBugzillaToGithub <robert.schadek@posteo.de> ---
THIS ISSUE HAS BEEN MOVED TO GITHUB

https://github.com/dlang/dmd/issues/19144

DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB

--