https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121643
--- Comment #7 from Danijel Zlaus <danijel.zlaus at gmail dot com> --- (In reply to Danijel Zlaus from comment #3) > Just hit this bug when bumping up GCC from 15.1 to 15.2. > > https://godbolt.org/z/fdsc69PzY > > The issue appears to be the same. That is, await_suspend of the Awaiter > takes a default parameter (const boost::source_location & loc = > BOOST_CURRENT_LOCATION). Wrong link, my mistake, was testing the attached example and messed up copy/pasting somehow. The bug was hit when using Boost.Cobalt with one of its Awaitables. https://godbolt.org/z/s9c4e7Y9b (In reply to Iain Sandoe from comment #5) > (In reply to Patrick Palka from comment #4) > > Started with r16-1548 / r15-10103-ga169a4718b5b62 > > interesting ... > > https://eel.is/c++draft/expr.await#3.7 > > does not appear to give the option for additional parameters to > await_suspend(<handle>) > > ... are we sure that it is intended? Probably is, as the same argument applies to 3.6 (await-ready) and 3.8 (await-resume), but you can currently have default arguments on both. See https://godbolt.org/z/8KWGjsj39 My lay interpretation is that the wording only constrains how the call should be made, but says nothing about any additional defaulted arguments those functions may have in their declaration.
