https://issues.dlang.org/show_bug.cgi?id=20223
Issue ID: 20223
Summary: C++, POSIX: Wrong mangling for const reference of
callback
Product: D
Version: D2
Hardware: All
OS: Linux
Status: NEW
Severity: normal
Priority: P1
Component: dmd
Assignee: [email protected]
Reporter: [email protected]
```
extern(C++) public int foo(T)(int function(const(T)* value));
extern(C++) public int bar(T)(int function(ref const(T) value));
```
The first one gets mangled as `_Z3fooIiEiPFiPKT_E`, as it should.
The second one gets mangled as:
`_Z3barIiEiPFiRT_E` instead of
`_Z3barIiEiPFiRKT_E`.
--