[4.3/4.4 Regression] Wrong locus for errors in DATA statement
Dominique Dhumieres
dominiq@lps.ens.fr
Sun Jun 22 13:03:00 GMT 2008
Another minor point, the test case gives:
/opt/gcc/gcc-4.4-work/gcc/testsuite/gfortran.dg/data_array_5.f90:13.8:
data i / myint(3), myint(2) / ! { dg-error "Incompatible types in DATA" }
1
Error: Incompatible types in DATA statement at (1); attempted conversion of INTEGER(4) to CHARACTER(1)
/opt/gcc/gcc-4.4-work/gcc/testsuite/gfortran.dg/data_array_5.f90:12.8:
data c / mychar(1), mychar(3) / ! { dg-error "Incompatible types in DATA" }
1
Error: Incompatible types in DATA statement at (1); attempted conversion of CHARACTER(1) to INTEGER(4)
should not CHARACTER be respectively 4 and 3?
Dominique
More information about the Fortran
mailing list