aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/g++.dg/parse/crash47.C
diff options
context:
space:
mode:
Diffstat (limited to 'gcc-4.9/gcc/testsuite/g++.dg/parse/crash47.C')
-rw-r--r--gcc-4.9/gcc/testsuite/g++.dg/parse/crash47.C9
1 files changed, 9 insertions, 0 deletions
diff --git a/gcc-4.9/gcc/testsuite/g++.dg/parse/crash47.C b/gcc-4.9/gcc/testsuite/g++.dg/parse/crash47.C
new file mode 100644
index 000000000..e77c49fe4
--- /dev/null
+++ b/gcc-4.9/gcc/testsuite/g++.dg/parse/crash47.C
@@ -0,0 +1,9 @@
+// PR c++/37531
+// { dg-do compile }
+// { dg-options "-std=gnu++98" }
+
+void
+foo ()
+{
+ (int[i]) { 0 }; // { dg-error "was not declared in this scope" }
+}