Thread overview
[Issue 19785] top level const types in function parameters should not mangle as const
Apr 02, 2019
Walter Bright
Apr 02, 2019
ag0aep6g
Apr 04, 2019
Dlang Bot
Apr 04, 2019
Walter Bright
Dec 17, 2022
Iain Buclaw
April 02, 2019
https://issues.dlang.org/show_bug.cgi?id=19785

Walter Bright <bugzilla@digitalmars.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|const basic types in        |top level const types in
                   |function parameters should  |function parameters should
                   |not mangle as const         |not mangle as const

--
April 02, 2019
https://issues.dlang.org/show_bug.cgi?id=19785

ag0aep6g <ag0aep6g@gmail.com> changed:

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

--- Comment #1 from ag0aep6g <ag0aep6g@gmail.com> ---
I suppose these should also mangle the same then:

    void foo(const int* p) {}
    void bar(const(int)* p) {}

And these, too:

    void foo(const int[] p) {}
    void bar(const(int)[] p) {}

I.e., remove the top level of const for mangling.

--
April 04, 2019
https://issues.dlang.org/show_bug.cgi?id=19785

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

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

--- Comment #2 from Dlang Bot <dlang-bot@dlang.rocks> ---
@WalterBright created dlang/dmd pull request #9556 "fix Issue 19785 - top level const types in function parameters should…" fixing this issue:

- fix Issue 19785 - top level const types in function parameters should not mangle as const

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

--
April 04, 2019
https://issues.dlang.org/show_bug.cgi?id=19785

--- Comment #3 from Walter Bright <bugzilla@digitalmars.com> ---
(In reply to ag0aep6g from comment #1)
> I suppose these should also mangle the same then:

Yes.

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

Iain Buclaw <ibuclaw@gdcproject.org> changed:

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

--