aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite
diff options
context:
space:
mode:
authorIgor Zamyatin <igor.zamyatin@intel.com>2014-08-01 17:20:02 +0000
committerKirill Yukhin <kyukhin@gcc.gnu.org>2014-08-01 17:20:02 +0000
commitffebf50f2f1654dea65d934fd9ad27408ea65434 (patch)
treeee0116a2ddd454cf8e349191dc8b2112fb838b87 /gcc/testsuite
parenta7ee52fba0727d98eadb8b6b9adbf42cf88c0914 (diff)
downloadgcc-ffebf50f2f1654dea65d934fd9ad27408ea65434.zip
gcc-ffebf50f2f1654dea65d934fd9ad27408ea65434.tar.gz
gcc-ffebf50f2f1654dea65d934fd9ad27408ea65434.tar.bz2
re PR other/61963 (CilkPlus Array Notation ICE in build_array_notation_ref on malformed function arguments.)
PR other/61963 gcc/cp/ * parser.c (cp_parser_array_notation): Added check for array_type. gcc/testsuite/ * c-c++-common/cilk-plus/AN/pr61963.c: New test. From-SVN: r213494
Diffstat (limited to 'gcc/testsuite')
-rw-r--r--gcc/testsuite/ChangeLog5
-rw-r--r--gcc/testsuite/c-c++-common/cilk-plus/AN/pr61963.c9
2 files changed, 14 insertions, 0 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index 95ebf2f..1bf38ab 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,3 +1,8 @@
+2014-08-01 Igor Zamyatin <igor.zamyatin@intel.com>
+
+ PR other/61963
+ * c-c++-common/cilk-plus/AN/pr61963.c: New test.
+
2014-07-08 Igor Zamyatin <igor.zamyatin@intel.com>
PR middle-end/61455
diff --git a/gcc/testsuite/c-c++-common/cilk-plus/AN/pr61963.c b/gcc/testsuite/c-c++-common/cilk-plus/AN/pr61963.c
new file mode 100644
index 0000000..dfa713c
--- /dev/null
+++ b/gcc/testsuite/c-c++-common/cilk-plus/AN/pr61963.c
@@ -0,0 +1,9 @@
+/* PR other/61963 */
+/* { dg-do compile } */
+/* { dg-options "-fcilkplus" } */
+
+void f (int * int *a) /* { dg-error "expected" } */
+{
+ a[0:64] = 0; /* { dg-error "was not declared" "" { target c++ } 7 } */
+ a[0:64] = 0;
+}