[Issue 16772] ICE when using extern(C++) and ubyte[] return value

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Mon Nov 28 10:22:38 PST 2016


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

--- Comment #2 from Atila Neves <atila.neves at gmail.com> ---
I should have myself a bit clearer: I don't expect to be able to call a
function that returns `ubyte[]` from C++. I expect the compiler to not crash
and tell me what it is I did that was wrong. What happened to me is I had
`extern(C++):` in a file that ended with only functions supposed to be called
from C++. Then I added another function at the end and got the ICE.

Notice as well that there is no file or line information in the error message.
I'd made several changes at once and had to figure out exactly where this error
was coming from (how is ubyte[] not supported??).

Also, `extern(C)` doesn't crash the compiler. Or generate an error, and I'm not
sure which is worse.

--


More information about the Digitalmars-d-bugs mailing list