From 52c91d3aaf983110034f894a555e3ebb9c4fa3e6 Mon Sep 17 00:00:00 2001 From: Jason Merrill Date: Mon, 23 Oct 2017 15:06:32 -0400 Subject: [PATCH] * g++.dg/opt/pr82577: Fix for C++17. From-SVN: r254021 --- gcc/testsuite/g++.dg/opt/pr82577.C | 5 +++++ 1 file changed, 5 insertions(+) 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(); -- 2.30.2