https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119907
Bug ID: 119907
Summary: ICE in tsubst_expr, at cp/pt.cc:21973
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: ---
Why is the GCC Bugzilla become so slowly lately???
This is high duplicate of PR 119906:
#include <ranges>
#include <type_traits>
template<class R>
struct view {
R r;
auto foo(R&) -> std::bool_constant<std::ranges::size(r) == 0>;
static constexpr bool empty_r = decltype(foo(R{})){};
};
static_assert(
view<std::ranges::empty_view<int>>::empty_r);
https://godbolt.org/z/jn1sershc