Thanks for the follow up Mat, this is as simple as I could get it and still reproduce the error. I pulled out parts of the type_kinds module because it played a part. Also, if I make this a main program instead of a module it wont reproduce (so I compile with -c).
The internal compiler error is triggered by the integer called ‘source.’ It can be remedied by switching to the two following uncommented lines. It now appears it’s something in the type_kinds, and in this code package everything uses it .
Good luck and thanks again for your interest,
benrl
!--------------------------------------------------------------------------------
MODULE test
! – Integer types
INTEGER, PARAMETER, PUBLIC :: Byte = SELECTED_INT_KIND(1) ! Byte integer
INTEGER, PARAMETER, PUBLIC :: Short = SELECTED_INT_KIND(4) ! Short integer
INTEGER, PARAMETER, PUBLIC :: Long = SELECTED_INT_KIND(8) ! Long integer
INTEGER, PARAMETER, PRIVATE :: LLong_t = SELECTED_INT_KIND(16) ! LLong integer
INTEGER, PARAMETER, PUBLIC :: LLong = &
( ( ( 1 + SIGN( 1, LLong_t ) ) / 2 ) * LLong_t ) + &
( ( ( 1 - SIGN( 1, LLong_t ) ) / 2 ) * Long )
! – Define arrays for default definition
INTEGER, PARAMETER, PRIVATE :: N_IP_KINDS = 4
INTEGER, PARAMETER, DIMENSION( N_IP_KINDS ), PRIVATE :: IP_KIND_TYPES = &
(/ Byte, Short, Long, LLong /)
CONTAINS
!----------------------------------------------
FUNCTION source()
INTEGER( Short ) :: Source = 1_Short
! INTEGER*2 :: Source
! Source = 1_Short
END FUNCTION source
END MODULE test
!--------------------------------------------------------------------------------
[102 lt-rusto:test]pgf95 -c -V test.f90
pgf95 6.0-5 32-bit target on x86 Windows
Copyright 1989-2000, The Portland Group, Inc. All Rights Reserved.
Copyright 2000-2005, STMicroelectronics, Inc. All Rights Reserved.
PGF90/x86 nt86 6.0-5
Copyright 1989-2000, The Portland Group, Inc. All Rights Reserved.
Copyright 2000-2005, STMicroelectronics, Inc. All Rights Reserved.
PGF90-F-0010-File write error occurred (data init file) (test.f90)
PGF90/x86 nt86 6.0-5: compilation aborted