You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
mixin template test()
{
pragma(inline, true) // remove this will work
static int zzz()
{
return 0;
}
int dummy = zzz();
}
void f()
{
mixin test!();
}
Trying to link this code gives
error: undefined reference to '_D9onlineapp1fFZ8__mixin13zzzFNbNiZi'
collect2: error: ld returned 1 exit status
Error: linker exited with status 1
The text was updated successfully, but these errors were encountered:
anonymous4 reported this on 2018-08-10T14:06:27Z
Transferred from https://issues.dlang.org/show_bug.cgi?id=19154
Description
mixin template test() { pragma(inline, true) // remove this will work static int zzz() { return 0; } int dummy = zzz(); } void f() { mixin test!(); } Trying to link this code gives error: undefined reference to '_D9onlineapp1fFZ8__mixin13zzzFNbNiZi' collect2: error: ld returned 1 exit status Error: linker exited with status 1The text was updated successfully, but these errors were encountered: