From: Jason Merrill Date: Mon, 23 Oct 2017 19:06:32 +0000 (-0400) Subject: * g++.dg/opt/pr82577: Fix for C++17. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=52c91d3aaf983110034f894a555e3ebb9c4fa3e6;p=gcc.git * g++.dg/opt/pr82577: Fix for C++17. From-SVN: r254021 --- diff --git a/gcc/testsuite/g++.dg/opt/pr82577.C b/gcc/testsuite/g++.dg/opt/pr82577.C index 73ae0f57c32..1a06897a403 100644 --- a/gcc/testsuite/g++.dg/opt/pr82577.C +++ b/gcc/testsuite/g++.dg/opt/pr82577.C @@ -1,6 +1,11 @@ // { dg-additional-options "-O2" } // PR c++/82577 ICE when optimizing +#if __cplusplus > 201500L +// register is no longer a keyword in C++17. +#define register +#endif + class a { public: int *b();