https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102765
--- Comment #2 from Iain Buclaw <ibuclaw at gdcproject dot org> --- D semantics for template symbols is that they must be overridable - even by normal global symbols. So in version 11.1, the default linkage for templates was switched over to weak, and with that, you can't safely inline them without violating ODR. To revert to the old behaviour, use `-fno-weak-templates`.