------- Comment #3 from dfranke at gcc dot gnu dot org 2007-05-18 14:00 ------- I'm not 100% sure whether the code below resembles the problem Erik reported here, but if so, it is fixed in mainline and 4.2:
$> cat pr24965.inc real :: x $> cat pr24965.f90 real :: x include "pr24965.inc" x = 3.14 end $> gfortran-svn -g -Wall pr24965.f90 pr24965.inc:1.9: Included at pr24965.f90:2: real :: x 1 Error: Symbol 'x' at (1) already has basic type of REAL -- dfranke at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |dfranke at gcc dot gnu dot | |org http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24965