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: [PATCH, Fortran] Some work on PR 29835: Improve the error message for an invalid format


I'd suggest to do it like in the library? That is, set unexpected_element to the full format string and call
gfc_error (error, error_element, &format_locus);

Works for me. I suspected that unexpected_element was used elsewhere, but it isn't, so your proposal is sound and safe.


The two execute-tests don't work anyway--any suggestions on how to make those do what expected? Otherwise I'll remove them if that's ok rather than leaving them in without any effect. Or should I fix the output-clauses accordingly, leave them and replace the XXX comment by an informative one stating that and why they are not really testing the runtime behaviour at the moment?

I don't know why it's failing. Have you looked at the testsuite log file (${builddir}/gcc/testsuite/gfortran/gfortran.log)? It'd be better to have runtime checks, if you manage to have them work. If you can't, well, I don't believe they should be included at all.


BTW, I won't do anything to the PR as it is not fixed fully, ok? Or should I mark it fixed and comment that further changes won't be done or something like that?

As a general rule: after committing, please add a comment saying what you've done and what still needs to be done to close the PR. In that case, we don't want to implement the Q descriptor, so unless I'm mistaken, you should indeed close it (another maintainer may want to reopen it if they see fit, but I think it's highly unlikely).


FX

--
François-Xavier Coudert
http://www.homepages.ucl.ac.uk/~uccafco/


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