As far as I know, the following code snippet is not valid Fortran: program test character(len=*) :: foo = 'test' end
To make the code correct, the variable definition either needs the "parameter" attribute or an explicit length. Other compilers (Intel, Fujitsu and NAG) reject this code, but all current versions of gfortran accept it without warning. -- Summary: gfortran accepts invalid variable definition Product: gcc Version: 4.2.0 Status: UNCONFIRMED Severity: minor Priority: P3 Component: fortran AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: martin at mpa-garching dot mpg dot de GCC build triplet: i686-pc-linux-gnu GCC host triplet: i686-pc-linux-gnu GCC target triplet: i686-pc-linux-gnu http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28771