------- 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