From: Jerome Lambourg Date: Fri, 1 Jan 2021 04:55:01 +0000 (-0300) Subject: Undefine ERROR in g++.dg/tree-ssa/copyprop.C X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=8aba274de204e1d401a20b95d78555f045ae49f0;p=gcc.git Undefine ERROR in g++.dg/tree-ssa/copyprop.C VxWorks headers define ERROR as a macro, which conflicts with the use in the test. for gcc/testsuite/ChangeLog * g++.dg/tree-ssa/copyprop.C: Undefine ERROR if defined. --- diff --git a/gcc/testsuite/g++.dg/tree-ssa/copyprop.C b/gcc/testsuite/g++.dg/tree-ssa/copyprop.C index 8c05895e45e..bc9167ad120 100644 --- a/gcc/testsuite/g++.dg/tree-ssa/copyprop.C +++ b/gcc/testsuite/g++.dg/tree-ssa/copyprop.C @@ -8,6 +8,11 @@ #include #include #include + +#ifdef ERROR +#undef ERROR +#endif + using namespace std; template _FIter lower_bound(_FIter, _FIter, _Tp&); template struct hash { };