The attached source code leads to the error message
internal compiler error: tree check: expected class 'type', have
'declaration' (label_decl) in build_array_type, at tree.c:4581
when compiled with GNU Fortran 95 (GCC 4.1.0 20050603 (experimental))
/home/eschnett/gcc/bin/gfortran -ftrapv -march=pentium4 -malign-double -g3
-Wall -Wshadow -c -o driftcorrect.F90.o driftcorrect.f90
--
Summary: ICE in build_array_type, at tree.c:4581
Product: gcc
Version: 4.1.0
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: fortran
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: schnetter at aei dot mpg dot de
CC: gcc-bugs at gcc dot gnu dot org
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=21902