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

Eric Gallager <egallager at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |egallager at gcc dot gnu.org,
                   |                            |jakub at gcc dot gnu.org

--- Comment #5 from Eric Gallager <egallager at gcc dot gnu.org> ---
(In reply to Kael Franco from comment #4)
> (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

cc-ing author of that commit (Jakub)

Reply via email to