https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115965
--- Comment #5 from Nathan Teodosio <nathan.teodosio at canonical dot com> --- In none of them. Or am I overlooking a buffer overrun here? Also with Clang I get no stack smashing even with -fstack-protector-all. In any case I fail to see why that would be dependent on which of the array definitions in main come first.