Thread overview
[Issue 24155] ImportC: accept C23 default initializers
[Issue 24155] ImportC: empty braces not accepted as struct initializer
Nov 11, 2023
Walter Bright
Nov 11, 2023
Basile-z
Nov 11, 2023
Daniel
Nov 12, 2023
Walter Bright
Nov 12, 2023
Dlang Bot
Nov 15, 2023
Dlang Bot
November 11, 2023
https://issues.dlang.org/show_bug.cgi?id=24155

Walter Bright <bugzilla@digitalmars.com> changed:

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

--- Comment #1 from Walter Bright <bugzilla@digitalmars.com> ---
It was indeed added to C23, see 6.7.10.

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |b2.temp@gmx.com
         Resolution|---                         |INVALID

--- Comment #2 from Basile-z <b2.temp@gmx.com> ---
Import C is specified as C11 complient, not C23
(https://dlang.org/spec/importc.html#dialect)

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

Daniel <wyrlon@gmx.net> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
                 CC|                            |wyrlon@gmx.net
         Resolution|INVALID                     |---

--- Comment #3 from Daniel <wyrlon@gmx.net> ---
But it works on other C99 compilers despite that it's not standardized until
C23,
so there is a lot of code out there, depending on this.

--
November 12, 2023
https://issues.dlang.org/show_bug.cgi?id=24155

Walter Bright <bugzilla@digitalmars.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|ImportC: empty braces not   |ImportC: accept C23 default
                   |accepted as struct          |initializers
                   |initializer                 |
           Severity|normal                      |enhancement

--
November 12, 2023
https://issues.dlang.org/show_bug.cgi?id=24155

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

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

--- Comment #4 from Dlang Bot <dlang-bot@dlang.rocks> ---
@WalterBright created dlang/dmd pull request #15801 "fix Issue 24155 - ImportC: accept C23 default initializers" fixing this issue:

- fix Issue 24155 - ImportC: accept C23 default initializers

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

--
November 15, 2023
https://issues.dlang.org/show_bug.cgi?id=24155

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

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

--- Comment #5 from Dlang Bot <dlang-bot@dlang.rocks> ---
dlang/dmd pull request #15801 "fix Issue 24155 - ImportC: accept C23 default initializers" was merged into master:

- ff01f2245cc5e35447b3f619f79bfc4eaac13741 by Walter Bright:
  fix Issue 24155 - ImportC: accept C23 default initializers

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

--