[Bug c++/115722] GCC uses old closure type when using as default argument instead of using new closure type each time
pinskia at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Mon Jul 1 05:51:31 GMT 2024
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115722
--- Comment #7 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
(In reply to Jason Liam from comment #6)
> https://stackoverflow.com/questions/50417782/is-it-safe-to-assume-that-
> identical-lambda-expressions-have-different-types
The question is does the lambda type in a default argument gets defined once
even if it is evaluated twice. I think so based on expr.prim.lambda.closure/2 .
More information about the Gcc-bugs
mailing list