On Sat, Feb 16, 2019 at 03:54:21PM -0500, Marek Polacek wrote: > I noticed this test fails in c++2a since the implementation of P0846 > landed in r265734. Since it's in g++.old-deja/, I never noticted the > fail (but I don't see any others). This patch tweaks a dg-error in > order to make it pass in c++2a also. > > Tested on x86_64-linux, ok for trunk? > > 2019-02-16 Marek Polacek <pola...@redhat.com> > > * g++.old-deja/g++.robertl/eb82.C: Tweak dg-error. > > diff --git gcc/testsuite/g++.old-deja/g++.robertl/eb82.C > gcc/testsuite/g++.old-deja/g++.robertl/eb82.C > index 9bf0398cd0a..fc2bf7866fe 100644 > --- gcc/testsuite/g++.old-deja/g++.robertl/eb82.C > +++ gcc/testsuite/g++.old-deja/g++.robertl/eb82.C > @@ -9,5 +9,5 @@ double val <int> () // { dg-error "" } bogus code > > int main () > { > - printf ("%d\n", val<(int)3> ()); // { dg-error "" } val undeclared > + printf ("%d\n", val<(int)3> ()); // { dg-error "" "" { target c++17_down > } } val undeclared > }
Actually I'll just go ahead with this, should be obvious anyway. Marek