This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/82065] New: gfortran rejects redundant use of intrinsic module constant
- From: "damian at sourceryinstitute dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 31 Aug 2017 20:55:41 +0000
- Subject: [Bug fortran/82065] New: gfortran rejects redundant use of intrinsic module constant
- Auto-submitted: auto-generated
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82065
Bug ID: 82065
Summary: gfortran rejects redundant use of intrinsic module
constant
Product: gcc
Version: 8.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: fortran
Assignee: unassigned at gcc dot gnu.org
Reporter: damian at sourceryinstitute dot org
Target Milestone: ---
gfortran 6, 7, and 8 generate compiler error messages when a variable in the
iso_fortran_env intrinsic model is accessed via use association where it is
also available via host association:
$ cat use-intrinsic-module-twice.f90
use iso_fortran_env
implicit none
print *, integer_kinds
call testsub
contains
subroutine testsub
use iso_fortran_env
print * , integer_kinds
end subroutine
end
$ gfortran use-intrinsic-module-twice.f90
/tmp/ccoAKOqk.s: Assembler messages:
/tmp/ccoAKOqk.s:134: Error: symbol `__iso_fortran_env_MOD_integer_kinds' is
already defined
$ gfortran --version
GNU Fortran (GCC) 8.0.0 20170731 (experimental)