https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86050
--- Comment #6 from Aso Renji <asorenji at gmail dot com> --- (In reply to Konstantin Kharlamov from comment #5) > Just tested with 8.3.0 version on the other PC, same there, i.e. stack space > does not increase when built with -O2. So this was fixed at least since > 8.3.0. Tested _after_ remove __attribute__((noinline)) from code? g++ --version g++ (Debian 8.3.0-6) 8.3.0 bug still present for me. Change "static __attribute__((noinline)) void" to "static void" and: Consumed 8384063 bytes Consumed 8384127 bytes Consumed 8384191 bytes Consumed 8384255 bytes Consumed 8384319 bytes Consumed 8384383 bytes Consumed 8384447 bytes Ошибка сегментирования