https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86050
--- Comment #7 from Konstantin Kharlamov <Hi-Angel at yandex dot ru> --- (In reply to Aso Renji from comment #6) > (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 > Ошибка сегментирования Oh, sorry, I didn't notice the testcase requires modification to start crashing. Yeah, it crashes with 9.1.0 too then.