On Fri, Jul 14, 2023 at 11:56 AM Roger Sayle <[email protected]> wrote: > > > > This patch fixes the bootstrap failure I'm seeing using gcc 4.8.5 as > > the host compiler. Ok for mainline? [I might be missing something]
I think adding const here makes this well defined C++20 too. See http://cplusplus.github.io/LWG/lwg-defects.html#3031 . Also see https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107850 . (I could be reading these wrong too). Thanks, Andrew > > > > > > 2023-07-14 Roger Sayle <[email protected]> > > > > gcc/ChangeLog > > * tree-if-conv.cc (predicate_scalar_phi): Make the arguments > > to the std::sort comparison lambda function const. > > > > > > Cheers, > > Roger > > -- > > >
