projects
/
gcc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
33029fa
)
* g++.dg/opt/pr82577: Fix for C++17.
author
Jason Merrill
<jason@gcc.gnu.org>
Mon, 23 Oct 2017 19:06:32 +0000
(15:06 -0400)
committer
Jason 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
patch
|
blob
|
history
diff --git
a/gcc/testsuite/g++.dg/opt/pr82577.C
b/gcc/testsuite/g++.dg/opt/pr82577.C
index 73ae0f57c3244e60cb8f71ea7a8f6a5b15a5d87b..1a06897a403e779a1abf72a98ac28c9413b08953 100644
(file)
--- 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();