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: bur...@gcc.gnu.org ReportedBy: bur...@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.