[Bug tree-optimization/89478] missed optimization for lambda expression when variable is uninitialized when declared
glisse at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Sat Feb 23 21:38:00 GMT 2019
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89478
--- Comment #1 from Marc Glisse <glisse at gcc dot gnu.org> ---
I think the uninitialized variable makes the initialization not constexpr (and
indeed gcc/clang complain if you try to declare test constexpr). Then we hit
the well-known missed optimization that gcc is unable to convert a dynamic
initialization into a static initialization even in the most trivial constant
cases.
More information about the Gcc-bugs
mailing list