[clang] [clang-tools-extra] [clang] Initialize pattern TypeLoc of PackIndexingTypeLoc (PR #231191)

Younan Zhang via cfe-commits cfe-commits at lists.llvm.org
Wed Oct 14 06:46:13 PDT 2026


================
@@ -6122,6 +6122,7 @@ namespace {
     void VisitPackIndexingTypeLoc(PackIndexingTypeLoc TL) {
       assert(DS.getTypeSpecType() == DeclSpec::TST_typename_pack_indexing);
       TL.setEllipsisLoc(DS.getEllipsisLoc());
+      TL.getPatternLoc().initialize(Context, DS.getTypeSpecTypeLoc());
----------------
zyn0217 wrote:

I don't think this is correct, filling in a reckless location makes things even worse than an empty location.

You should ask your Claude to stop working around the issue, and at least think it yourself.

https://github.com/llvm/llvm-project/pull/231191


More information about the cfe-commits mailing list