https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69554
--- Comment #16 from Manuel López-Ibáñez <manu at gcc dot gnu.org> --- You can also just match the locations and the columns with dg-error. Placing dg-error at the expected lines will match the expected output as explained in comment 12. Fixing dg-begin-multiline-output for fortran might be too much work/disruptive for gcc 6 stage 4.