Thread overview
[Issue 22682] `pragma(mangle)` does not work for nested functions
[Issue 22682] `pragma(mangle)` does not work at local scope
Dec 17, 2022
Iain Buclaw
Sep 06, 2023
Basile-z
Sep 06, 2023
Basile-z
Sep 06, 2023
Dlang Bot
Sep 07, 2023
Basile-z
Sep 08, 2023
Dlang Bot
December 17, 2022
https://issues.dlang.org/show_bug.cgi?id=22682

Iain Buclaw <ibuclaw@gdcproject.org> changed:

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

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

--- Comment #1 from Basile-z <b2.temp@gmx.com> ---
A better test case, as in the first the final intention is a bit more complex.

```d
void main()
{
    pragma(mangle, "main.v")
    void v(){}
}
```

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|`pragma(mangle)` does not   |`pragma(mangle)` does not
                   |work at local scope         |work for nested functions

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

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

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

--- Comment #2 from Dlang Bot <dlang-bot@dlang.rocks> ---
@SixthDot created dlang/dmd pull request #15582 "fix issue 22682 - `pragma(mangle)` does not work for nested functions" fixing this issue:

- fix issue 22682 - `pragma(mangle)` does not work for nested functions

  This is usefull to wrap C functions headers directly in a D wrapper

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

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           See Also|                            |https://issues.dlang.org/sh
                   |                            |ow_bug.cgi?id=17638

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

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

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 #15582 "fix issue 22682 - `pragma(mangle)` does not work for nested functions" was merged into master:

- 440bf2139eff9cc1ee4e22734734e69db3dec0f7 by Basile Burg:
  fix issue 22682 - `pragma(mangle)` does not work for nested functions

  This is usefull to declare C functions headers directly in a D wrapper

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

--