Hi! r258898 changed the wording and changed error to inform for the second message and adjusted lots of testcases, but has not adjusted this one.
Fixed thusly, tested on x86_64-linux with -m32/-m64, committed to trunk. 2018-04-04 Jakub Jelinek <ja...@redhat.com> PR testsuite/85189 * g++.dg/inherit/override-attribs.C: Use dg-message instead of dg-error for the diagnostics of overridden functions. Adjust for new wording. --- gcc/testsuite/g++.dg/inherit/override-attribs.C.jj 2011-07-11 10:39:37.000000000 +0200 +++ gcc/testsuite/g++.dg/inherit/override-attribs.C 2018-04-04 16:11:21.212486074 +0200 @@ -5,7 +5,7 @@ class one { public: virtual void - test(void* value); // { dg-error "overriding" } + test(void* value); // { dg-message "overridden" } }; class two : public one Jakub