* g++.dg/opt/pr82577: Fix for C++17.
authorJason Merrill <jason@gcc.gnu.org>
Mon, 23 Oct 2017 19:06:32 +0000 (15:06 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Mon, 23 Oct 2017 19:06:32 +0000 (15:06 -0400)
From-SVN: r254021

gcc/testsuite/g++.dg/opt/pr82577.C

index 73ae0f57c3244e60cb8f71ea7a8f6a5b15a5d87b..1a06897a403e779a1abf72a98ac28c9413b08953 100644 (file)
@@ -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();