https://gcc.gnu.org/bugzilla/show_bug.cgi?id=21496
--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> --- So I think this testcase was fixed in two different ways. First was by using dg-excess-errors for the testcase which was introduced by r0-98409 to testcase. And then fixed with r0-109419 for GCC 4.7.0 where the libstdc++ testsuite will prune all of "notes:" now unless you use dg-prune-output. Also it looks like a linenum of 0 will match all lines num now too. Also in the main GCC testsuite (I don't know if it applies to the libstdc++ testsuite) you can use relative line numbers now too.