If the testcase gfortran.dg/char_component_initializer_1.f90 is compiled with -Wall, a bogus truncation warning is given:
$> gfortran-svn -Wall gfortran.dg/char_component_initializer_1.f90 gfortran.dg/char_component_initializer_1.f90:11.52: character(len=16) :: tdefi(2) = (/'0z1jan0000','1hr '/) 1 Warning: CHARACTER expression at (1) is being truncated (16/10) $> gfortran-svn gcc version 4.5.0 20091227 (experimental) (GCC) -- Summary: bogus truncation warning for default-initialized character components Product: gcc Version: 4.5.0 Status: UNCONFIRMED Keywords: diagnostic Severity: normal Priority: P3 Component: fortran AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: dfranke at gcc dot gnu dot org http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42526