This is the mail archive of the
gcc-cvs@gcc.gnu.org
mailing list for the GCC project.
r269766 - in /trunk/gcc: cp/ChangeLog cp/pt.c t...
- From: jason at gcc dot gnu dot org
- To: gcc-cvs at gcc dot gnu dot org
- Date: Mon, 18 Mar 2019 15:58:25 -0000
- Subject: r269766 - in /trunk/gcc: cp/ChangeLog cp/pt.c t...
Author: jason
Date: Mon Mar 18 15:58:24 2019
New Revision: 269766
URL: https://gcc.gnu.org/viewcvs?rev=269766&root=gcc&view=rev
Log:
PR c++/89682 - wrong access error in default argument.
Here we were pushing into the right access context, but we were called from
a deferred checking context, so didn't end up doing the checks until after
we left the access context.
* pt.c (tsubst_default_argument): Don't defer access checks.
Added:
trunk/gcc/testsuite/g++.dg/overload/defarg12.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/pt.c