This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/79189] Poor code generation when using stateless lambda instead of normal function
- From: "glisse at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sun, 22 Jan 2017 20:25:49 +0000
- Subject: [Bug c++/79189] Poor code generation when using stateless lambda instead of normal function
- Auto-submitted: auto-generated
- References: <bug-79189-4@http.gcc.gnu.org/bugzilla/>
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.