C++ expected-to-fail compilation goes through by not detecting mutable-specifier on lambda...

leon zadorin leonleon77@gmail.com
Wed Mar 4 01:54:00 GMT 2020

On Tue, Mar 3, 2020 at 9:57 PM Jonathan Wakely <jwakely.gcc@gmail.com>
> What they're doing seems kinda OK, but I think it's not actually
> allowed by the standard. The wording does say that unless the lambda
> uses the mutable keyword, the function call operator is
> const-qualified.
> So I think this is a bug.

Thanks Jonathan, yep makes sense. I've filed a bug report just in case:

More information about the Gcc-help mailing list