This is the mail archive of the fortran@gcc.gnu.org mailing list for the GNU Fortran 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]

Re: problem with integer kind


On 06/17/2012 07:35 AM, Andrea Negri wrote:
Dear all,
I have compiled the newer version of gcc (4.7.1), with the support for
c++ and fortran.
I have done a very simple test of the integer "double" precision
(although it's a bit incorrect saying double integer precision) and
the compiler refuses to compile!

The program is the following one:

PROGRAM kind_integer_test
  IMPLICIT NONE
  INTEGER, PARAMETER :: intprec=selected_int_kind(18)
  INTEGER(intprec) :: test_int

write(*,*) 'intprec=', intprec
!  test write
write(*,*) 'test_int=', test_int
test_int = 9000000000

try:


test_int = 9000000000_intprec

I see what its doing, might be a bug.

Jerry


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