diff options
author | Jason Merrill <jason@redhat.com> | 2021-01-25 17:02:57 -0500 |
---|---|---|
committer | Jason Merrill <jason@redhat.com> | 2021-04-29 14:41:45 -0400 |
commit | bc99c54de5a262ffc5f7801e16d919d335a53a8b (patch) | |
tree | 2feef056d55d6a95faa2e9ee5437e03e64448f3c /libcpp/directives.c | |
parent | a0fdff3cf33f72848d3f894272431a5d49fe6a16 (diff) | |
download | gcc-bc99c54de5a262ffc5f7801e16d919d335a53a8b.zip gcc-bc99c54de5a262ffc5f7801e16d919d335a53a8b.tar.gz gcc-bc99c54de5a262ffc5f7801e16d919d335a53a8b.tar.bz2 |
c++: Use empty field in constexpr eval.
In discussion of PR98463, Jakub noted that cxx_fold_indirect_ref_1 was
bailing out early for empty bases even when we do have fields for them (in
C++17 mode or later). This corrects that.
gcc/cp/ChangeLog:
* constexpr.c (cxx_fold_indirect_ref_1): Only set *empty_base if we
don't find a field.
Diffstat (limited to 'libcpp/directives.c')
0 files changed, 0 insertions, 0 deletions