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/18990] ICE in gfc_get_derived_type, at fortran/trans-types.c


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


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