llvm/llvm-project

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

Open

#180,046 创建于 2026年2月5日

在 GitHub 查看
 (10 评论) (0 反应) (0 负责人)C++ (10,782 fork)batch import
clang:frontendgood first issue

仓库指标

Star
 (26,378 star)
PR 合并指标
 (平均合并 1天 2小时) (30 天内合并 1,000 个 PR)

描述

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>>'

贡献者指南