https://issues.dlang.org/show_bug.cgi?id=23598
--- Comment #5 from Walter Bright <bugzi...@digitalmars.com> --- I suspect that when the sort template is instantiated, it is too eager to evaluate its arguments. It should just go as far as seeing String is a struct, and not attempt to semantic its contents. --