https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120142

            Bug ID: 120142
           Summary: internal compiler error: in tsubst, at cp/pt.cc:16670
           Product: gcc
           Version: 16.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: ldalessandro at gmail dot com
  Target Milestone: ---

Created attachment 61346
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=61346&action=edit
cvise reduced testcase

Cvise reduced test case attached.

It fails "internal compiler error: in tsubst, at cp/pt.cc:16670" on 13, 14, and
15, and it fails "internal compiler error: tree check: accessed elt 1 of
'tree_vec' with -1 elts in add_to_template_args, at cp/pt.cc:612" on 16/trunk.

It's not pretty, but I tried to reduce it farther to make it cleaner but I
eliminated the tsubst failure when I did so.

Compile with C++23.

Live: https://godbolt.org/z/aMarEY63E [May 6th, 2025]

Reply via email to