This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/79189] Poor code generation when using stateless lambda instead of normal function


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79189

Marc Glisse <glisse at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |missed-optimization

--- Comment #1 from Marc Glisse <glisse at gcc dot gnu.org> ---
The optimizer has trouble seeing through the dynamic initialization of vtable.
Interestingly, compiling with -std=gnu++17 lets the optimizers do their job
(constexpr lambda conversion to a pointer?). But it still points at a missing
optimization.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]