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/36239] ICE: gfc_validate_kind(): Got bad kind



------- Comment #1 from kargl at gcc dot gnu dot org  2008-05-15 17:42 -------
Here's a reduced testcase

subroutine bug1
  integer, parameter :: ik1 = 1
  integer, parameter :: k_k11 = kind(int((0.,0.), kind=ik1))
end subroutine bug1

If (0.,0.) is replaced by either 0 (i.e., INTEGER) or 0. (i.e., REAL),
then the code compiles.

If ik1 is 1, 2, or 16, then the ICE occurs.  For ik1 = 4 or 8, the 
code compiles.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36239


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