re PR testsuite/25241 ([C++] DejaGNU does not distinguish between errors and warnings)