https://issues.dlang.org/show_bug.cgi?id=19953

[email protected] changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[email protected]

--- Comment #1 from [email protected] ---
The `const` in the D signature doesn't apply to the reference itself, but to
the type, i.e., is the same as `ref const(int[291][6])`, and as such your C++
example isn't an analogon.

Proper analogon with a 1D array, showing that the problem goes somewhat deeper:

C++:          short test27(const int (&)[291]);
Win64 mangle: ?test27@@YAFAEAY0BCD@$$CBH@Z

D:            extern(C++) short test27(const ref int[291])
Win64 mangle: ?test27@@YAFAEBY0BCD@H@Z

--

Reply via email to