https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106689 --- Comment #6 from Janez Zemva <janezz55 at gmail dot com> --- I have since changed the repo. You can still demonstrate the bug by uncommenting the line: //[&a, &r, &s]() noexcept -> bool // uncomment for bug