https://issues.dlang.org/show_bug.cgi?id=14905
RazvanN <razvan.nitu1...@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |razvan.nitu1...@gmail.com --- Comment #4 from RazvanN <razvan.nitu1...@gmail.com> --- I agree with Kenji, those are technically different error messages. There is no way to fix this that would not impact warnings in conditional compilation. What we can do though is add the name of the template instance in the error message as to disambiguate. PR: https://github.com/dlang/dmd/pull/14543 --