re PR c++/11063 (ICE on parsing initialization list of const array member)
authorJason Merrill <jason@gcc.gnu.org>
Tue, 14 Oct 2003 20:46:45 +0000 (16:46 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Tue, 14 Oct 2003 20:46:45 +0000 (16:46 -0400)
        PR c++/11063
        * typeck.c (build_modify_expr): Call convert rather than abort.

From-SVN: r72495

gcc/testsuite/g++.dg/ext/complit1.C [new file with mode: 0644]

diff --git a/gcc/testsuite/g++.dg/ext/complit1.C b/gcc/testsuite/g++.dg/ext/complit1.C
new file mode 100644 (file)
index 0000000..fae6bf2
--- /dev/null
@@ -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})
+{
+}