aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-loop-distribution.c
diff options
context:
space:
mode:
authorJason Merrill <jason@redhat.com>2021-04-06 15:13:02 -0400
committerJason Merrill <jason@redhat.com>2021-04-06 16:08:40 -0400
commitde03b82f3ca9103eba3699d1dc91b1d0ee1f16cb (patch)
tree2cfbdb03fd9ae1c5f07a02e5d40ed671000191f5 /gcc/tree-loop-distribution.c
parent8685348075d91945066dea9b564bd42cbc1d22bd (diff)
downloadgcc-de03b82f3ca9103eba3699d1dc91b1d0ee1f16cb.zip
gcc-de03b82f3ca9103eba3699d1dc91b1d0ee1f16cb.tar.gz
gcc-de03b82f3ca9103eba3699d1dc91b1d0ee1f16cb.tar.bz2
c++: access checking in aggregate initialization [PR96673]
We were deferring access checks while parsing B<int>{}, didn't adjust that when we went to instantiate the default member initializer for B::c, deferred access checking for C::C, and then checked it after parsing B<int>{}, back in the main() context which has no access. We need to do the access checks in the class context of the DMI. I tried fixing this in push_to/pop_from_top_level, but that caused several regressions. gcc/cp/ChangeLog: PR c++/96673 * init.c (get_nsdmi): Don't defer access checking. gcc/testsuite/ChangeLog: PR c++/96673 * g++.dg/cpp1y/nsdmi-aggr13.C: New test.
Diffstat (limited to 'gcc/tree-loop-distribution.c')
0 files changed, 0 insertions, 0 deletions