Gfortran does not like me forgetting () on function calls.
Simple test code:
module ice
implicit none
contains
subroutine in_the
logical :: there_is
there_is = sunshine ! () are missing!
end subroutine
function sunshine()
logical :: sunshine
sunshine = .true.
end function
end module
$ LANG=C gfortran -c -o gccice.o gccice.f90
gccice.f90: In function 'in_the':
gccice.f90:17: internal compiler error: in gfc_conv_variable, at
fortran/trans-expr.c:483
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.
--
Summary: ICE on invalid code, gfc_conv_variable
Product: gcc
Version: 4.3.3
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: fortran
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: thomas dot orgis at awi dot de
GCC host triplet: x86_64-unknown-linux-gnu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40678