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

            Bug ID: 122070
           Summary: [regression] ICE in C++23 type deduction
           Product: gcc
           Version: 15.2.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: development at jordi dot vilar.cat
  Target Milestone: ---

This code (https://godbolt.org/z/Mfj1jKq6f) in compiler explorer used to
compile successfully in g++ 13 and fails with an ice (segmentation fault) in
gcc 14 & 15 with -std=c++23. In -std=c++20 mode compiles ok in all recent
versions.

The issue seems to be related to return type deduction in immediate context
when the returned type needs recursion to be deduced.

Reply via email to