https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86214
--- Comment #14 from Jakub Jelinek <jakub at gcc dot gnu.org> --- (In reply to Jakub Jelinek from comment #11) > The workaround for MySQL, at least for -O2, would be to move logger:msg > definition out from the class, so it is not inline, then at least gcc trunk > doesn't want to inline it and you don't run into this. Or just add -fconserve-stack to the g++ options.