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

            Bug ID: 120133
           Summary: internal compiler error: Segmentation fault signal
                    terminated program cc1plus
           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 61337
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=61337&action=edit
test case

I encountered this segfault while trying to reduce a different ICE with cvise.

    template <typename _I1, typename = _I1>
    concept indirectly_swappable = ;
             iter_swap()   (indirectly_swappable<

Compile with g++ -std=gnu20.

    <source>:2:32: error: expected primary-expression before ';' token
        2 | concept indirectly_swappable = ;
          |                                ^
    <source>:3:25: error: expected 'auto' or 'decltype(auto)' after
'indirectly_swappable'
        3 |          iter_swap()   (indirectly_swappable<
          |                         ^~~~~~~~~~~~~~~~~~~~
    g++: internal compiler error: Segmentation fault signal terminated program
cc1plus

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

Reply via email to