diff options
author | Jason Merrill <jason@redhat.com> | 2023-05-01 10:57:20 -0400 |
---|---|---|
committer | Jason Merrill <jason@redhat.com> | 2023-05-01 16:55:07 -0400 |
commit | 07c52d1eec9671af92b7ce977b469f13a87887ad (patch) | |
tree | 285dc6de4e8d715b2fb25139eff2f289a30cbf00 /libgcc | |
parent | d89b152436a14cae3715af06cd52ed2d0eaafb8e (diff) | |
download | gcc-07c52d1eec9671af92b7ce977b469f13a87887ad.zip gcc-07c52d1eec9671af92b7ce977b469f13a87887ad.tar.gz gcc-07c52d1eec9671af92b7ce977b469f13a87887ad.tar.bz2 |
c++: array DMI and member fn [PR109666]
Here it turns out I also needed to adjust cfun when stepping out of the
member function to instantiate the DMI. But instead of adding that tweak,
let's unify with instantiate_body and just push_to_top_level instead of
trying to do the minimum subset of it. There was no measurable change in
compile time on stdc++.h.
This should also resolve 109506 without yet another tweak.
PR c++/109666
gcc/cp/ChangeLog:
* name-lookup.cc (maybe_push_to_top_level)
(maybe_pop_from_top_level): Split out...
* pt.cc (instantiate_body): ...from here.
* init.cc (maybe_instantiate_nsdmi_init): Use them.
* name-lookup.h: Declare them..
gcc/testsuite/ChangeLog:
* g++.dg/cpp0x/nsdmi-array2.C: New test.
Diffstat (limited to 'libgcc')
0 files changed, 0 insertions, 0 deletions