https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83582
Bug ID: 83582
Summary: GCC is unable to fold the code of identical
lambda-expressions
Product: gcc
Version: unknown
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: ipa
Assignee: unassigned at gcc dot gnu.org
Reporter: jeanmichael.celerier at gmail dot com
CC: marxin at gcc dot gnu.org
Target Milestone: ---
Case 1: https://godbolt.org/g/JvmxJr
Case 2: https://godbolt.org/g/FWo12z
It seems that the compiler should be able to pick up lambda functions with the
same implementation, at least in a given translation unit.