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

            Bug ID: 119252
           Summary: g++: internal compiler error: Segmentation fault
                    signal terminated program cc1plus
           Product: gcc
           Version: 15.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: hewillk at gmail dot com
  Target Milestone: ---

#include <iterator>

struct S { bool has_value() const; };

namespace std::ranges {
template<class _Vp,
        indirect_binary_predicate<iterator_t<_Vp>, iterator_t<_Vp>> _Pred>
class chunk_by_view {
  constexpr explicit chunk_by_view(_Vp, _Pred);
};

template<typename _Range, typename _Pred>
  chunk_by_view(_Range&&, _Pred) -> chunk_by_view<_Range, _Pred>;
}
int main() {
  S s[4] = {};
  std::ranges::chunk_by_view(s, &S::has_value);
}

https://godbolt.org/z/vqoj557qE

Reply via email to