[Bug fortran/47750] New: testsuite/gfortran.dg: dg-warning and dg-error should be distinguished

burnus at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Tue Feb 15 11:07:00 GMT 2011


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47750

           Summary: testsuite/gfortran.dg: dg-warning and dg-error should
                    be distinguished
           Product: gcc
           Version: 4.6.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
        AssignedTo: burnus@gcc.gnu.org
        ReportedBy: burnus@gcc.gnu.org
            Blocks: 45743


Currently, dg-error and dg-warning are effectively treated as identical.

Adding the prefix to gcc/testsuite/lib/gfortran.exp (cf. e.g. objc.exp) is
enough to make them distinguishable.

However, the dg machinery expects that there is a column number - unless the
dg-error/warning starts with "0:". Cf. lib/gcc-dg.exp's process-message.

To mend this, one has to modify the regular expression in
gcc/testsuite/lib/gfortran-dg.exp

I have an (almost) working patch for that.



More information about the Gcc-bugs mailing list