diff options
author | Jakub Jelinek <jakub@redhat.com> | 2018-09-25 18:40:57 +0200 |
---|---|---|
committer | Jakub Jelinek <jakub@gcc.gnu.org> | 2018-09-25 18:40:57 +0200 |
commit | 69deaf149a531fe55c058b87609f9f1c56ab6fc6 (patch) | |
tree | a81d24f799f5ff07f0de4364dc757092c1195464 /gcc/bitmap.c | |
parent | e8753bb88e273b5fd1adba241edb78513aab6c39 (diff) | |
download | gcc-69deaf149a531fe55c058b87609f9f1c56ab6fc6.zip gcc-69deaf149a531fe55c058b87609f9f1c56ab6fc6.tar.gz gcc-69deaf149a531fe55c058b87609f9f1c56ab6fc6.tar.bz2 |
re PR c++/87398 (g++ ICE on valid code: tree check: expected record_type or union_type or qual_union_type, have array_type in cxx_eval_constant_expression, at cp/constexpr.c:4820)
PR c++/87398
* constexpr.c (cxx_eval_constant_expression) <case OBJ_TYPE_REF>: Only
look through COMPONENT_REFs with DECL_FIELD_IS_BASE FIELD_DECLs.
* g++.dg/other/pr87398.C: New test.
* g++.dg/cpp2a/constexpr-virtual10.C: New test.
* g++.dg/cpp2a/constexpr-virtual11.C: New test.
From-SVN: r264580
Diffstat (limited to 'gcc/bitmap.c')
0 files changed, 0 insertions, 0 deletions