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/49213] [OOP] gfortran rejects structure constructor expression


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

--- Comment #14 from janus at gcc dot gnu.org ---
(In reply to janus from comment #13)
> type(t) :: x = t(y)
>                  1
> Error: Parameter 'y' at (1) has not been declared or is a variable, which
> does not reduce to a constant expression

This error also occurs for the following non-polymorphic version ...

type t
  integer, pointer :: j
end type t
integer, target :: i = 0
type(t) :: x = t(i)
end

... which should be valid at least in F08.


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