r269766 - in /trunk/gcc: cp/ChangeLog cp/pt.c t...

jason@gcc.gnu.org jason@gcc.gnu.org
Mon Mar 18 15:58:00 GMT 2019


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



More information about the Gcc-cvs mailing list