This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug fortran/57096] Allocatable variable is not behaved as expected


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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]