This is the mail archive of the gcc-cvs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]