This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/78500] ICE in gfc_check_vardef_context, at fortran/expr.c:5289
- From: "gerhard dot steinmetz dot fortran at t-online dot de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 23 Nov 2016 19:45:00 +0000
- Subject: [Bug fortran/78500] ICE in gfc_check_vardef_context, at fortran/expr.c:5289
- Auto-submitted: auto-generated
- References: <bug-78500-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78500
--- Comment #1 from Gerhard Steinmetz <gerhard.steinmetz.fortran@t-online.de> ---
Whereas :
$ cat z2.f90
type(t) function f()
f = 1
end
$ gfortran-7-20161120 -c z2.f90
z2.f90:1:0:
type(t) function f()
Error: The type for function 'f' at (1) is not accessible
z2.f90:2:3:
f = 1
1
Error: Type inaccessible in variable definition context (assignment) at (1)