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

glisse at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Sun Jan 22 20:26:00 GMT 2017


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.


More information about the Gcc-bugs mailing list