aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-ssa-phiopt.cc
diff options
context:
space:
mode:
authorJason Merrill <jason@redhat.com>2023-05-01 17:41:44 -0400
committerJason Merrill <jason@redhat.com>2023-05-02 16:24:15 -0400
commit4b8d0d4d7fd245ef85c7801e7838845502a5a61d (patch)
treeee8437c91f6467f278d48bb59a956ae1ce330b9f /gcc/tree-ssa-phiopt.cc
parentbc24c51c0ccd64617864897ad071c98004ffc0a4 (diff)
downloadgcc-4b8d0d4d7fd245ef85c7801e7838845502a5a61d.zip
gcc-4b8d0d4d7fd245ef85c7801e7838845502a5a61d.tar.gz
gcc-4b8d0d4d7fd245ef85c7801e7838845502a5a61d.tar.bz2
c++: std::variant slow to compile [PR109678]
Here, when dealing with a class with a complex subobject structure, we would try and fail to find the relevant FIELD_DECL for an empty base before giving up. And we would do this at each level, in a combinatorially problematic way. Instead, we should check for an empty base first. PR c++/109678 gcc/cp/ChangeLog: * constexpr.cc (cxx_fold_indirect_ref_1): Handle empty base first. gcc/testsuite/ChangeLog: * g++.dg/cpp1z/variant1.C: New test.
Diffstat (limited to 'gcc/tree-ssa-phiopt.cc')
0 files changed, 0 insertions, 0 deletions