re PR c++/87861 (ICE in output_constructor_regular_field, at varasm.c:5165)
authorJakub Jelinek <jakub@gcc.gnu.org>
Tue, 11 Dec 2018 20:37:53 +0000 (21:37 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Tue, 11 Dec 2018 20:37:53 +0000 (21:37 +0100)
commit582d2481f7380441c345bf1dfe698f90f34dd6cf
treed4a98b7a3f984eb5a9776ad9a0437508358bea3e
parent3c0517a6531112d2dec16d18cdabb1513d387b7a
re PR c++/87861 (ICE in output_constructor_regular_field, at varasm.c:5165)

PR c++/87861
* class.c (build_vtbl_initializer): For TARGET_VTABLE_USES_DESCRIPTORS
bump index for each added word.
* constexpr.c (find_array_ctor_elt): Add forward declaration.
(cxx_eval_call_expression): Handle TARGET_VTABLE_USES_DESCRIPTORS
vtable calls.
(cxx_eval_constant_expression) <case OBJ_TYPE_REF>: Divide token
by TARGET_VTABLE_USES_DESCRIPTORS if non-zero.

From-SVN: r267032
gcc/cp/ChangeLog
gcc/cp/class.c
gcc/cp/constexpr.c