Originally reported by Konstantinos Margaritis here: https://github.com/ldc-developers/ldc/pull/1276 DMD should expand tildes only as the first character of include/… paths, and if followed by a path separator. This is a real issue as such paths tend to crop up as part of Debian packaging. Pull request incoming.
Fixed by: https://github.com/dlang/dmd/pull/10284