[clang][C++] Confusing error message after triggering a hard error in a function template specialization #109359
Labels
clang:diagnostics
New/improved warning or error message in Clang, but not in clang-tidy or static analyzer
Currently, when the same ill-formed function template specialization is instantiated more than once, Clang emits strange error messages. Godbolt link.
Error messages:
It seems that Clang treats the ill-formedness after the first instantiation failure as something like substitution failure.
Clang started to behave like this since 3.4, while MSVC and GCC don't do so. It's unclear to me whether this is intended.
The text was updated successfully, but these errors were encountered: