From 5455db23afe7ba8c0fe203868ac6a62bafeb54a8 Mon Sep 17 00:00:00 2001
From: Jason Merrill <jason@gcc.gnu.org>
Date: Tue, 14 Oct 2003 16:46:45 -0400
Subject: [PATCH] re PR c++/11063 (ICE on parsing initialization list of const
 array member)

        PR c++/11063
        * typeck.c (build_modify_expr): Call convert rather than abort.

From-SVN: r72495
---
 gcc/testsuite/g++.dg/ext/complit1.C | 15 +++++++++++++++
 1 file changed, 15 insertions(+)
 create mode 100644 gcc/testsuite/g++.dg/ext/complit1.C

diff --git a/gcc/testsuite/g++.dg/ext/complit1.C b/gcc/testsuite/g++.dg/ext/complit1.C
new file mode 100644
index 000000000000..fae6bf208fc6
--- /dev/null
+++ b/gcc/testsuite/g++.dg/ext/complit1.C
@@ -0,0 +1,15 @@
+// PR c++/11063
+
+class Foo
+{
+private:
+  const int val_[2];
+
+public:
+  Foo(int, int);
+};
+
+Foo::Foo(int v0, int v1)
+  : val_((int[]) {v0, v1})
+{
+}
-- 
GitLab