http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59320
--- Comment #14 from Joost VandeVondele <Joost.VandeVondele at mat dot ethz.ch> --- (In reply to Manuel López-Ibáñez from comment #13) > Will -fsanitize=undefined catch these? If so, perhaps the message shown > before reporting a bug should mention trying this first. I guess -fsanitize=address would catch the out-of-bounds access, but I don't think the message should become too complex (it is already a bit narrow and C-centric, for example '-fno-strict-aliasing' means nothing for Fortran programs), and furthermore that option would only be available for a recent gcc.