[Bug c++/84103] Dynamic initialization is performed for non-local variables in case when constant initialization is permitted
jason at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Mon Jun 25 17:25:00 GMT 2018
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84103
Jason Merrill <jason at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |jason at gcc dot gnu.org
--- Comment #2 from Jason Merrill <jason at gcc dot gnu.org> ---
Note that if you make the constructor constexpr, GCC (as far back as 4.6) will
do constant initialization of the variable.
More information about the Gcc-bugs
mailing list