[Bug c++/96673] [9/10 Regression] Friend class with templates and default constructor not recognized in C++14 or later

2021-06-01 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96673

Richard Biener  changed:

   What|Removed |Added

   Target Milestone|9.4 |9.5

--- Comment #7 from Richard Biener  ---
GCC 9.4 is being released, retargeting bugs to GCC 9.5.

[Bug c++/96673] [9/10 Regression] Friend class with templates and default constructor not recognized in C++14 or later

2021-05-20 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96673

--- Comment #6 from CVS Commits  ---
The releases/gcc-10 branch has been updated by Jason Merrill
:

https://gcc.gnu.org/g:e206f71eaf98149224269b00407bc5def6ae2dca

commit r10-9848-ge206f71eaf98149224269b00407bc5def6ae2dca
Author: Jason Merrill 
Date:   Tue Apr 6 15:13:02 2021 -0400

c++: access checking in aggregate initialization [PR96673]

We were deferring access checks while parsing B{}, 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{}, 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.

[Bug c++/96673] [9/10 Regression] Friend class with templates and default constructor not recognized in C++14 or later

2021-05-14 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96673

Jakub Jelinek  changed:

   What|Removed |Added

   Target Milestone|8.5 |9.4

--- Comment #5 from Jakub Jelinek  ---
GCC 8 branch is being closed.