https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97256
Richard Smith <richard-gccbugzilla at metafoo dot co.uk> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |richard-gccbugzilla@metafoo | |.co.uk --- Comment #4 from Richard Smith <richard-gccbugzilla at metafoo dot co.uk> --- The reference to 'b' from within the lambda is not an odr-use, so is not transformed into a use of the lambda's capture. This program has defined behavior and is being miscompiled.