llvm/llvm-project
View on GitHubClang elides the wrong part of the template type in error message.
Open
#180,046 opened on Feb 5, 2026
clang:frontendgood first issue
Repository metrics
- Stars
- (26,378 stars)
- PR merge metrics
- (Avg merge 1d 2h) (1,000 merged PRs in 30d)
Description
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>>'