Thread overview
[Issue 23055] importC: using compound-literal array as pointer in CTFE gives 'dereference of invalid pointer'
May 12, 2022
Walter Bright
Dec 17, 2022
Iain Buclaw
Apr 09, 2023
Walter Bright
Apr 21, 2023
Dlang Bot
Apr 25, 2023
Dlang Bot
May 12, 2022
https://issues.dlang.org/show_bug.cgi?id=23055

Walter Bright <bugzilla@digitalmars.com> changed:

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

--- Comment #1 from Walter Bright <bugzilla@digitalmars.com> ---
While we might be able to make it work, it is invalid C11 code anyway.

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

Iain Buclaw <ibuclaw@gdcproject.org> changed:

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

--
April 09, 2023
https://issues.dlang.org/show_bug.cgi?id=23055

--- Comment #2 from Walter Bright <bugzilla@digitalmars.com> ---
This now gives an assert error on ctfeexpr.d(578)

--
April 21, 2023
https://issues.dlang.org/show_bug.cgi?id=23055

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

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

--- Comment #3 from Dlang Bot <dlang-bot@dlang.rocks> ---
@WalterBright created dlang/dmd pull request #15121 "fix Issue 23055 - importC: using compound-literal array as pointer in CTFE gives 'dereference of invalid pointer'" fixing this issue:

- fix Issue 23055 - importC: using compound-literal array as pointer in CTFE gives 'dereference of invalid pointer'

- fix Issue 23055 - importC: using compound-literal array as pointer in CTFE gives 'dereference of invalid pointer'

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

--
April 25, 2023
https://issues.dlang.org/show_bug.cgi?id=23055

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

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

--- Comment #4 from Dlang Bot <dlang-bot@dlang.rocks> ---
dlang/dmd pull request #15121 "fix Issue 23055 - importC: using compound-literal array as pointer in CTFE gives 'dereference of invalid pointer'" was merged into master:

- 0cfd4558fef00c381e0e1a165211cb9506bc9339 by Walter Bright:
  fix Issue 23055 - importC: using compound-literal array as pointer in CTFE
gives 'dereference of invalid pointer'

- 5ec0ef3f8e641a829f217d10d47a0d081848ec6a by Walter Bright:
  fix Issue 23055 - importC: using compound-literal array as pointer in CTFE
gives 'dereference of invalid pointer'

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

--