The attached code shows the problem - when the LEN intrinsic is overloaded,
gfortran is unable to resolve the symbol. Remove the overloading, and the code
compiles fine.
parabrisas:~/test% gfortran -v
Using built-in specs.
Target: i686-pc-linux-gnu
Configured with: ../gcc/configure --prefix=/home/tow/root/gcc
--enable-languages=c,f95
Thread model: posix
gcc version 4.1.0 20050315 (experimental)
parabrisas:~/test% ~/root/gcc/bin/gfortran -c m_wxml_buffer.f90
In file m_wxml_buffer.f90:19
character(len=1), dimension(len(s)) :: s_a
1
Error: Symbol 'len' at (1) has no IMPLICIT type
--
Summary: Problem when overloading LEN intrinsic
Product: gcc
Version: 4.1.0
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: fortran
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: tow21 at cam dot ac dot uk
CC: gcc-bugs at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20482