This is the mail archive of the fortran@gcc.gnu.org mailing list for the GNU Fortran project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [4.3/4.4 Regression] Wrong locus for errors in DATA statement


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]