[Bug fortran/68544] ICE trying to pass derived type constructor as a function
anlauf at gmx dot de
gcc-bugzilla@gcc.gnu.org
Wed Apr 11 21:01:00 GMT 2018
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68544
Harald Anlauf <anlauf at gmx dot de> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |anlauf at gmx dot de
--- Comment #7 from Harald Anlauf <anlauf at gmx dot de> ---
(In reply to Gerhard Steinmetz from comment #3)
> Update :
>
>
> $ cat z1.f90
> program p
> type t
> end type
> call f(t)
> end
Adding "implicit none" triggers a misleading error message:
pr68544.f90:3:8:
type t
1
Error: Symbol 't' at (1) has no IMPLICIT type
I think the code is invalid. Intel writes:
pr68544.f90(5): error #6478: A type-name must not be used as a variable. [T]
call f(t)
---------^
compilation aborted for pr68544.f90 (code 1)
More information about the Gcc-bugs
mailing list