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/82065] gfortran rejects redundant use of intrinsic module constant


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

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