void main() { Stuff!(Thing!float) s; } struct Stuff(T) { T!int var; } struct Thing(T) { T varling; } This compiles and makes no sense.
*** Issue 15070 has been marked as a duplicate of this issue. ***
This is a regression. Introduced in https://github.com/D-Programming-Language/dmd/pull/2051
@StianGulpen created dlang/dmd pull request #10613 "fix issue 15069 - nonsense struct template instantiations still compile" fixing this issue: - fix issue 15069 - nonsense struct template instantiations still compile https://github.com/dlang/dmd/pull/10613
dlang/dmd pull request #10613 "fix issue 15069 - nonsense struct template instantiations still compile" was merged into stable: - a7dbe9628a38a0089b71b2ba0daac3157e22daee by Stian Gulpen: fix issue 15069 - nonsense struct template instantiations still compile https://github.com/dlang/dmd/pull/10613