diff options
author | Jason Merrill <jason@redhat.com> | 2022-05-20 13:32:10 -0400 |
---|---|---|
committer | Jason Merrill <jason@redhat.com> | 2022-05-24 15:52:03 -0400 |
commit | 1189c03859cefef4fc4fd44d57eb3d4d3348b562 (patch) | |
tree | 9edd7b5a787308e833080d55506efb3d18a86dc3 /gcc/gimple-ssa-sprintf.cc | |
parent | 0aee03cb638c262846f55477b40828f694c846a0 (diff) | |
download | gcc-1189c03859cefef4fc4fd44d57eb3d4d3348b562.zip gcc-1189c03859cefef4fc4fd44d57eb3d4d3348b562.tar.gz gcc-1189c03859cefef4fc4fd44d57eb3d4d3348b562.tar.bz2 |
c++: *this folding in constexpr call
The code in cxx_eval_call_expression to fold *this was doing the wrong thing
for array decay; we can use cxx_fold_indirect_ref instead.
gcc/cp/ChangeLog:
* constexpr.cc (cxx_fold_indirect_ref): Add default arg.
(cxx_eval_call_expression): Call it.
(cxx_fold_indirect_ref_1): Handle null empty_base.
Diffstat (limited to 'gcc/gimple-ssa-sprintf.cc')
0 files changed, 0 insertions, 0 deletions