Thread overview
[Issue 23971] Provide clearer error message when trying to return a slice with C++ linkage
Jun 21, 2023
Dlang Bot
Jun 21, 2023
Dlang Bot
Jun 24, 2023
Nick Treleaven
June 05, 2023
https://issues.dlang.org/show_bug.cgi?id=23971

--- Comment #1 from Marcelo Silva Nascimento Mancini <msnmancini@hotmail.com> ---
Oh yea, the current error message is pretty bad:

`cannot return type const(char)[] because its linkage is extern(C++)`

--
June 21, 2023
https://issues.dlang.org/show_bug.cgi?id=23971

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

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

--- Comment #2 from Dlang Bot <dlang-bot@dlang.rocks> ---
@RazvanN7 created dlang/dmd pull request #15336 "Fix Issue 23971 - Provide clearer error message when trying to return…" fixing this issue:

- Fix Issue 23971 - Provide clearer error message when trying to return a slice with C++ linkage

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

--
June 21, 2023
https://issues.dlang.org/show_bug.cgi?id=23971

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

--- Comment #3 from Dlang Bot <dlang-bot@dlang.rocks> ---
dlang/dmd pull request #15336 "Fix Issue 23971 - Provide clearer error message when trying to return…" was merged into master:

- 6b4d03967de2a02d770107ce48037c325bb1bad6 by RazvanN7:
  Fix Issue 23971 - Provide clearer error message when trying to return a slice
with C++ linkage

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

--
June 24, 2023
https://issues.dlang.org/show_bug.cgi?id=23971

Nick Treleaven <nick@geany.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |nick@geany.org
           See Also|                            |https://issues.dlang.org/sh
                   |                            |ow_bug.cgi?id=18716

--