Example: read '(i0)', i 1 Warning: Positive width required in format string at (1) [2007-06-24 23:19:31] <jerryd> I would use gfc_notify_std instead of gfc_error at line 849 of io.c Turning gfc_warning into gfc_error did not work as it should. We need to do some investagation why it does not and then trun it into gfc_notify_std.
Note: The test cases should then be updated as well. (Though dg-error and dg-warning are treated alike -> PR30612, PR29882.)
Since I partly discovered this, I will see what I can do.
Currently inline_1.f90 in gfortran.fortran-torture/compile is passing because the error in the print statement is only giving a warning. Patch testing.
Subject: Bug number PR32545 A patch for this bug has been added to the patch tracker. The mailing list url for the patch is http://gcc.gnu.org/ml/gcc-patches/2007-07/msg00303.html
Subject: Bug 32545 Author: jvdelisle Date: Wed Jul 4 01:08:48 2007 New Revision: 126295 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=126295 Log: 2007-07-03 Jerry DeLisle <jvdelisle@gcc.gnu.org> PR fortran/32545 * io.c (check_format): Always call gfc_error for errors. (check_format_string): Change type of this function to try and return the result of check_format. (check_io_constraints): Return MATCH_ERROR if check_format_string returns FAILURE. 2007-07-03 Jerry DeLisle <jvdelisle@gcc.gnu.org> PR fortran/32612 * decl.c (get_proc_name): Include attr->mod_proc in check for error. Modified: trunk/gcc/fortran/ChangeLog trunk/gcc/fortran/decl.c trunk/gcc/fortran/io.c
Subject: Bug 32545 Author: jvdelisle Date: Wed Jul 4 01:13:47 2007 New Revision: 126296 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=126296 Log: 2007-07-03 Jerry DeLisle <jvdelisle@gcc.gnu.org> PR fortran/32545 * gfortran.dg/fmt_error.f90: New test. 2007-07-03 Jerry DeLisle <jvdelisle@gcc.gnu.org> PR fortran/32612 * gfortran.dg/interface_13.f90: New test. Added: trunk/gcc/testsuite/gfortran.dg/fmt_error.f90 trunk/gcc/testsuite/gfortran.dg/interface_13.f90 Modified: trunk/gcc/testsuite/ChangeLog
Fixed on trunk, closing