[Bug fortran/57096] Allocatable variable is not behaved as expected
dominiq at lps dot ens.fr
gcc-bugzilla@gcc.gnu.org
Sat Oct 21 07:47:00 GMT 2017
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=57096
--- Comment #9 from Dominique d'Humieres <dominiq at lps dot ens.fr> ---
> Dominique, did you consider the fact that two separate files are required
> to trigger the bug?
With the original code
% gfortran-fsf-4.8 -c -std=f2003 ModA.f03
% gfortran-fsf-4.8 -c -std=f2003 ModA1.f03
% gfortran-fsf-4.8 -c -std=f2003 ModA2.f03
% gfortran-fsf-4.8 -c -std=f2003 test.f03
% gfortran-fsf-4.8 ModA.f03 ModA1.f03 ModA2.f03 test.f03 Main.cc
% ./a.out
gA%next(): 2
gA%next(): 4
gA%next(): 6
gAp%next(): 2
gAp%next(): 4
gAp%next(): 6
More information about the Gcc-bugs
mailing list