Created attachment 1614 [details] proj I get a linker error for "test.v" even though "test.q" is never used. If you remove the "test.v" member from "test.q" then the linker error no longer happens. struct Q(_T) { V!(1, _T) v; // removing this fixes link error }
The linker being for "test.v.init", it seems it is trying to create "test.q.init" but can't as it can't find the symbol for "test.v.init". Though it shouldn't be constructing "test.q.init" anywhere, removing "-debug" from the compiler option fixes the issue.
THIS ISSUE HAS BEEN MOVED TO GITHUB https://github.com/dlang/dmd/issues/19193 DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB