This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/82065] gfortran rejects redundant use of intrinsic module constant
- From: "anlauf at gmx dot de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 13 Feb 2018 22:28:03 +0000
- Subject: [Bug fortran/82065] gfortran rejects redundant use of intrinsic module constant
- Auto-submitted: auto-generated
- References: <bug-82065-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82065
Harald Anlauf <anlauf at gmx dot de> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |anlauf at gmx dot de
--- Comment #3 from Harald Anlauf <anlauf at gmx dot de> ---
Slight variation of the original testcase that compiles
but gives a wrong result:
use iso_fortran_env
implicit none
print *, integer_kinds
call testsub
call testsub2
contains
subroutine testsub
print *, integer_kinds
end subroutine
subroutine testsub2
use iso_fortran_env, only : x => integer_kinds
print *, x
end subroutine
end
% ./a.out
1 2 4 8
1 2 4 8
0 0 0 0