On Thu, Jun 11, 2009 at 03:09:48PM +0100, Jonathan Wakely wrote: > 2009/6/5 Jonathan Wakely: > > 2009/6/5 Aldy Hernandez: > >> > >> Which test is this? ?Can you send it to me? > > > > It tests a header that isn't checked in yet, so sending the test alone > > wouldn't help much :) > > > > I'll try to come up with a self-contained example tomorrow. > > The attached test will FAIL with a trunk build from yesterday, with > the output in the second attachment. > > The test for errors on line 11 fails because the error is at :11:9: > which matches the test for errors on line 9. > > Jonathan
> // { dg-do compile } > > struct X > { > }; > > int main() > { > X x1(0); // { dg-error "no match" } > > X x2(0); // { dg-error "no match" } > > return 0; > } > // { dg-excess-errors "note" } The libstdc++ testsuite doesn't use the overrides for dg-error et al. I believe Janis is looking into this. In the meantime, can you just put the column number in the dg-error message? i.e: // { dg-error "XX:no match" } This will match the message correctly, and eventually all error messages should have matching columns. Aldy