diff options
author | Jason Merrill <jason@gcc.gnu.org> | 2003-10-14 16:46:45 -0400 |
---|---|---|
committer | Jason Merrill <jason@gcc.gnu.org> | 2003-10-14 16:46:45 -0400 |
commit | 5455db23afe7ba8c0fe203868ac6a62bafeb54a8 (patch) | |
tree | bd44bf6a9f09e2b4c8cdd3624596c783ee644347 | |
parent | 182609b572ff4cb8a4be98163ec05b4713bb1cd2 (diff) | |
download | gcc-5455db23afe7ba8c0fe203868ac6a62bafeb54a8.zip gcc-5455db23afe7ba8c0fe203868ac6a62bafeb54a8.tar.gz gcc-5455db23afe7ba8c0fe203868ac6a62bafeb54a8.tar.bz2 |
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
-rw-r--r-- | gcc/testsuite/g++.dg/ext/complit1.C | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.dg/ext/complit1.C b/gcc/testsuite/g++.dg/ext/complit1.C new file mode 100644 index 0000000..fae6bf2 --- /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}) +{ +} |