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
This commit is contained in:
Jason Merrill 2003-10-14 16:46:45 -04:00
parent 182609b572
commit 5455db23af

View File

@ -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})
{
}