On hpux, the namespace for 'd' and 'r' is not clean, so we need to undef them in the test. More info is available in PR testsuite/81056.
Dave -- John David Anglin dave.ang...@bell.net
2017-08-20 John David Anglin <dang...@gcc.gnu.org> PR testsuite/81056 * testsuite/17_intro/names.cc: Undef 'd' and 'r' on __hpux__ Index: testsuite/17_intro/names.cc =================================================================== --- testsuite/17_intro/names.cc (revision 248710) +++ testsuite/17_intro/names.cc (working copy) @@ -107,4 +107,9 @@ #undef y #endif +#ifdef __hpux__ +#undef d +#undef r +#endif + #include <bits/stdc++.h>