[Issue 21887] Compiler crashes when interfacing with C++ code
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Mon May 3 10:49:17 UTC 2021
https://issues.dlang.org/show_bug.cgi?id=21887
moonlightsentinel at disroot.org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |moonlightsentinel at disroot.o
| |rg
--- Comment #2 from moonlightsentinel at disroot.org ---
Possible reduction (but might also be another bug):
=====================================================
alias dgType() = extern(D) int delegate();
extern(C++) int cpp_set_foreach_ind()(dgType!() dg);
int foo(int delegate() dg)
{
return cpp_set_foreach_ind!()(dg);
}
=====================================================
--
More information about the Digitalmars-d-bugs
mailing list