[prev in list] [next in list] [prev in thread] [next in thread]
List: gcc-bugs
Subject: [Bug fortran/82065] New: gfortran rejects redundant use of intrinsic module constant
From: "damian at sourceryinstitute dot org" <gcc-bugzilla () gcc ! gnu ! org>
Date: 2017-08-31 20:55:41
Message-ID: bug-82065-4 () http ! gcc ! gnu ! org/bugzilla/
[Download RAW message or body]
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)=
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic