llvm/llvm-project

Clang elides the wrong part of the template type in error message.

Offen

#180.046 geöffnet am 05.02.2026

 (10 Kommentare) (0 Reaktionen) (0 zugewiesene Personen)C++ (10.782 Forks)batch import
clang:frontendgood first issue

Repository-Metriken

Stars
 (26.378 Sterne)
PR-Merge-Metriken
 (PR-Metriken ausstehend)

Beschreibung

Repro: https://godbolt.org/z/9bYzd3WPG

Error message:error: no viable conversion from returned value of type 'S3<S2<...>>' to function return type 'S3<S2<...>>'

Expected: error: no viable conversion from returned value of type 'S3<const S2<int>>' to function return type 'S3<S2<int>>'

Contributor Guide