This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/18990] ICE in gfc_get_derived_type, at fortran/trans-types.c
- From: "tow21 at cam dot ac dot uk" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 15 Mar 2005 22:37:36 -0000
- Subject: [Bug fortran/18990] ICE in gfc_get_derived_type, at fortran/trans-types.c
- References: <20041214171021.18990.tow21@cam.ac.uk>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From tow21 at cam dot ac dot uk 2005-03-15 22:37 -------
(In reply to comment #8)
> Hmm, is the following valid code because we get the same ICE here too:
> module core
> type :: T
> character(len=*) :: s
> end type T
> private
> CONTAINS
> subroutine FOO(X)
> type(T), intent(in) :: X
> end subroutine
> end module core
No, that code's invalid too - you can't use the asterisk there. I don't have my
copy of the standard to hand, but it's definitely the case - basically, the
asterisk can only be used if the length can be inferred from elsewhere, which it
can't here.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18990