This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/36239] ICE: gfc_validate_kind(): Got bad kind
- From: "kargl at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 15 May 2008 17:42:14 -0000
- Subject: [Bug fortran/36239] ICE: gfc_validate_kind(): Got bad kind
- References: <bug-36239-13404@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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