https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79189
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Depends on| |4131
--- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
The problem for <=c++14 is:
void _GLOBAL__sub_I_main ()
{
<bb 2> :
vtable.increment = _FUN;
return;
}
Which is PR 4131.
Referenced Bugs:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=4131
[Bug 4131] The C++ compiler doesn't place a const class object to ".rodata"
section with non trivial constructor