This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/57096] Allocatable variable is not behaved as expected
- From: "dominiq at lps dot ens.fr" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sat, 21 Oct 2017 07:47:19 +0000
- Subject: [Bug fortran/57096] Allocatable variable is not behaved as expected
- Auto-submitted: auto-generated
- References: <bug-57096-4@http.gcc.gnu.org/bugzilla/>
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