mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-02-14 13:10:51 +08:00
re PR c++/64314 (ICE in record_reference, at cgraphbuild.c:87)
PR c++/64314 PR c++/57510 * typeck2.c (split_nonconstant_init_1): Remove a sub-CONSTRUCTOR that has been completely split out. From-SVN: r220047
This commit is contained in:
parent
c6e7c499a3
commit
fa4e8db234
@ -1,5 +1,10 @@
|
||||
2015-01-23 Jason Merrill <jason@redhat.com>
|
||||
|
||||
PR c++/64314
|
||||
PR c++/57510
|
||||
* typeck2.c (split_nonconstant_init_1): Remove a sub-CONSTRUCTOR
|
||||
that has been completely split out.
|
||||
|
||||
PR c++/64701
|
||||
* constexpr.c (maybe_constant_value): Just hand back STATEMENT_LIST.
|
||||
|
||||
|
@ -653,6 +653,8 @@ split_nonconstant_init_1 (tree dest, tree init)
|
||||
|
||||
if (!split_nonconstant_init_1 (sub, value))
|
||||
complete_p = false;
|
||||
else
|
||||
CONSTRUCTOR_ELTS (init)->ordered_remove (idx--);
|
||||
num_split_elts++;
|
||||
}
|
||||
else if (!initializer_constant_valid_p (value, inner_type))
|
||||
|
8
gcc/testsuite/g++.dg/init/array38.C
Normal file
8
gcc/testsuite/g++.dg/init/array38.C
Normal file
@ -0,0 +1,8 @@
|
||||
// PR c++/64314
|
||||
// { dg-do compile { target c++11 } }
|
||||
|
||||
struct C { C(); ~C(); };
|
||||
struct A {
|
||||
int i;
|
||||
C c[1];
|
||||
} a {};
|
Loading…
Reference in New Issue
Block a user