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