https://gcc.gnu.org/bugzilla/show_bug.cgi?id=125123
--- Comment #4 from Kael Franco <kaelfandrew at gmail dot com> --- (In reply to nurullahcitil1536 from comment #0) > Compilation failure when a template for is used within a function with > requires expression. It doesn't matter what is the content of requires expr, > compilation always fails with mangler issues: https://godbolt.org/z/7ef94vz6W > I think the problem was introduced recently, at most 1-2 months. (In reply to Alex from comment #2) > ``` > struct my_array > { > int _arr[2]; > > constexpr int const* > begin() const > { return _arr; } > > constexpr int const* > end() const > { return _arr + 2; } > }; > > template<typename T> > requires true > void f() > { > template for(constexpr int I : my_array{0, 1}) > { > > } > } > template void f<void>(); > ``` Both are caused by r16-8704-gf99c1d5c5d24bf
