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

            Bug ID: 124095
           Summary: ICE in write_unqualified_name, at cp/mangle.cc:1535
           Product: gcc
           Version: 16.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: john at drouhard dot dev
  Target Milestone: ---

>From trunk as of 2026-02-13 (539e6a417856519d6112e99a1583da1926e34047), the
following code snippet produces an ICE:

---------------
#include <ranges>
int main() {
  template for (constexpr auto I : std::views::iota(0, 10)) {
    (void) I;
  }
}

---------------

during GIMPLE pass: *build_cgraph_edges
./test.cpp:3:32: internal compiler error: in write_unqualified_name, at
cp/mangle.cc:1535
    3 |   template for (constexpr auto I : std::views::iota(0, 10)) {
      |                                ^
/home/modules/rhel8/gcc-16-20260213/bin/../libexec/gcc/x86_64-pc-linux-gnu/16.0.1/cc1plus
-quiet -iprefix
/home/modules/rhel8/gcc-16-20260213/bin/../lib/gcc/x86_64-pc-linux-gnu/16.0.1/
-D_GNU_SOURCE ./test.cpp -quiet -dumpdir build-gcc/ -dumpbase test.cpp
-dumpbase-ext .cpp -mtune=generic -march=x86-64 -std=c++26 -o /tmp/ccrhTf3F.s
Please submit a full bug report, with preprocessed source (by using
-freport-bug).
See <https://gcc.gnu.org/bugs/> for instructions.

Reply via email to