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

貢獻者指南