https://gcc.gnu.org/bugzilla/show_bug.cgi?id=53379
--- Comment #17 from Joost VandeVondele <Joost.VandeVondele at mat dot ethz.ch> --- (In reply to Harald Anlauf from comment #16) > (In reply to Joost VandeVondele from comment #15) > > While if we use -fsanitize=address (at greatly increased cost), we actually > > get a Christmas tree with losts of colourful lights: > > I cannot use ASAN on any of the servers at work, as the > administrators enforce strict limits on virtual memory. > (See also PR 55517 on ASAN). Sure, and one of the strong points of Fortran is that bounds checking works so well, at a very low runtime cost... so replacing it with asan is not a general purpose solution. I believe your proposed patch in comment #1 is at least a reasonable partial fix.