[patch,fortran] Allow namelist with internal file (PR 28224)

François-Xavier Coudert fxcoudert@gmail.com
Thu Oct 26 15:02:00 GMT 2006


> > +  write(str,nml=nam) ! { dg-error "Internal file at (1) is incompatible with namelist"}
> > +  read(str,nml=nam) ! { dg-error "Internal file at (1) is incompatible with namelist"}
>
> I now do get the following error with "make -k check". I frankly have no
> idea why and how it should work as gfortran gives the right error
> message. If someone, who knows dejagnu, could enlighten me, what I do wrong?
> (I really wonder why I didn't see this failure yesterday.)

I think the dg-error string is interpreted as a regexp, where the ()
have special meaning. Try "Internal file .* is incompatible with
namelist", I guess it should work.

FX



More information about the Fortran mailing list