[Bug c++/115722] GCC uses old closure type when using as default argument instead of using new closure type each time
jlame646 at gmail dot com
gcc-bugzilla@gcc.gnu.org
Mon Jul 1 05:06:27 GMT 2024
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115722
--- Comment #3 from Jason Liam <jlame646 at gmail dot com> ---
[expr.prim.lambda.closure] states:
> The type of a lambda-expression (which is also the type of the closure object) is a unique, unnamed non-union class type, called the closure type, ...
-------------------------
In cppinsight clang create new class-type each time. Demo
https://cppinsights.io/s/abca4605
More information about the Gcc-bugs
mailing list