[Issue 23339] Internal Compiler Error with extern(C++) class declared in function template
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sun Sep 18 13:53:15 UTC 2022
https://issues.dlang.org/show_bug.cgi?id=23339
--- Comment #4 from naydef <naydef at abv.bg> ---
Sorry for the comment spam
Another example caused by the same issue, probably:
-----------------------------------------------
import std.stdio;
import std.traits;
extern(C++) class Delegate(string Linkage)
{
void opCall()
{
string myString = Linkage;
}
}
void main()
{
auto special = new Delegate!("C");
}
-----------------------------------------------
onlineapp.d(14): Error: template instance `onlineapp.Delegate!"C"` Internal
Compiler Error: C++ `string` template value parameter is not supported
-----------------------------------------------
--
More information about the Digitalmars-d-bugs
mailing list