llvm/llvm-project

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

开放

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

 (10 条评论) (0 个反应) (0 位负责人)C++ (10,782 个派生)batch import
clang:frontendgood first issue

仓库指标

星标
 (26,378 个星标)
PR 合并指标
 (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>>'

贡献者指南