https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109865
--- Comment #14 from GARY.WHITE at ColoState dot edu <Gary.White at ColoState dot edu> --- Clarification on the last post. I'm compiling everything with -O3, except va09ad.f90. If va09ad.f90 is compiled with -O3, you get the bug. If va09ad.f90 is compiled with -O0, the code produces correct answers. Since LAPACK is a common library, you should be able to duplicate the bug with little difficulty by changing the makefile.