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:
parent
182609b572
commit
5455db23af
15
gcc/testsuite/g++.dg/ext/complit1.C
Normal file
15
gcc/testsuite/g++.dg/ext/complit1.C
Normal 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})
|
||||
{
|
||||
}
|
Loading…
Reference in New Issue
Block a user