[Issue 19785] New: const basic types in function parameters should not mangle as const
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Tue Apr 2 20:32:57 UTC 2019
https://issues.dlang.org/show_bug.cgi?id=19785
Issue ID: 19785
Summary: const basic types in function parameters should not
mangle as const
Product: D
Version: D2
Hardware: All
OS: All
Status: NEW
Severity: minor
Priority: P1
Component: dmd
Assignee: nobody at puremagic.com
Reporter: bugzilla at digitalmars.com
void foo(const int i) { }
void bar(int i) { }
Mangles as:
_D4test3fooFxiZv
_D4test3barFiZv
The 'x' is not necessary in the mangling for foo(), as the const would only
apply to the internal behavior of foo(), and is not relevant to the caller.
--
More information about the Digitalmars-d-bugs
mailing list