Thread overview
[Issue 24118] ICE / regression from 2.103.1 - segfault on CTFE only code in 2.104.2 and 2.105.0
Aug 28, 2023
Paolo Invernizzi
Sep 05, 2023
mhh
Sep 05, 2023
Paolo Invernizzi
Sep 05, 2023
Basile-z
Sep 05, 2023
RazvanN
Sep 05, 2023
RazvanN
Sep 06, 2023
Dlang Bot
Sep 11, 2023
Dlang Bot
Sep 16, 2023
Dlang Bot
August 28, 2023
https://issues.dlang.org/show_bug.cgi?id=24118

Paolo Invernizzi <paolo.invernizzi@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |industry

--
September 05, 2023
https://issues.dlang.org/show_bug.cgi?id=24118

mhh <maxhaton@gmail.com> changed:

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

--- Comment #1 from mhh <maxhaton@gmail.com> ---
Only apple silicon / Mac?

--
September 05, 2023
https://issues.dlang.org/show_bug.cgi?id=24118

--- Comment #2 from Paolo Invernizzi <paolo.invernizzi@gmail.com> ---
It seems to crash also on linux, we don't have Windows machines to test.

--
September 05, 2023
https://issues.dlang.org/show_bug.cgi?id=24118

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |backend, ice
           Hardware|Other                       |All
                 OS|Mac OS X                    |All

--
September 05, 2023
https://issues.dlang.org/show_bug.cgi?id=24118

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|backend, ice                |
                 CC|                            |razvan.nitu1305@gmail.com
           Hardware|All                         |Other
                 OS|All                         |Mac OS X

--- Comment #3 from RazvanN <razvan.nitu1305@gmail.com> ---
Reduced code:

void map(alias fun, T)(T[] arr)
{
    fun(arr);
}


void foo() {
    if( __ctfe )
    {
        ["a", "b", "c"].map!( a => " " ~ a[0] );
    }
}

--
September 05, 2023
https://issues.dlang.org/show_bug.cgi?id=24118

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 OS|Mac OS X                    |All
           Severity|major                       |regression

--
September 06, 2023
https://issues.dlang.org/show_bug.cgi?id=24118

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

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

--- Comment #4 from Dlang Bot <dlang-bot@dlang.rocks> ---
@RazvanN7 updated dlang/dmd pull request #15578 "Issue 23874 - -profile=gc segfaults / ICE regression" fixing this issue:

- Fix Issue 24118 - ICE / regression from 2.103.1 - segfault on CTFE only code in 2.104.2 and 2.105.0

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

--
September 11, 2023
https://issues.dlang.org/show_bug.cgi?id=24118

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

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

--- Comment #5 from Dlang Bot <dlang-bot@dlang.rocks> ---
dlang/dmd pull request #15578 "Issue 24118 - ICE / regression from 2.103.1 - segfault on CTFE only code in 2.104.2 and 2.105.0" was merged into stable:

- 0f769730772bbd58f6f57549f391c88a554c7604 by RazvanN7:
  Fix Issue 24118 - ICE / regression from 2.103.1 - segfault on CTFE only code
in 2.104.2 and 2.105.0

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

--
September 16, 2023
https://issues.dlang.org/show_bug.cgi?id=24118

--- Comment #6 from Dlang Bot <dlang-bot@dlang.rocks> ---
dlang/dmd pull request #15609 "merge stable" was merged into master:

- 6bc17b01bb0c69660aeb55e0a914285a7afb27b0 by Razvan Nitu:
  Fix Issue 24118 - ICE / regression from 2.103.1 - segfault on CTFE only code
in 2.104.2 and 2.105.0 (#15578)

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

--