[PR86823] retain deferred access checks from outside firewall
authorAlexandre Oliva <aoliva@gcc.gnu.org>
Fri, 14 Dec 2018 20:06:15 +0000 (20:06 +0000)
committerAlexandre Oliva <aoliva@gcc.gnu.org>
Fri, 14 Dec 2018 20:06:15 +0000 (20:06 +0000)
commitb96778342fa7d6890876eecdaa0470b3915724e6
tree62705ec239a3cab52c9b845c189440d116f5119c
parent0fca07e31dc85bea3b1d669d7cc1d51d22192335
[PR86823] retain deferred access checks from outside firewall

We used to preserve deferred access check along with resolved template
ids, but a tentative parsing firewall introduced additional layers of
deferred access checks, so that we don't preserve the checks we
want to any more.

This patch moves the deferred access checks from outside the firewall
into it.

From: Jason Merrill <jason@redhat.com>
for  gcc/cp/ChangeLog

PR c++/86823
* parser.c (cp_parser_template_id): Rearrange deferred access
checks into the firewall.

From: Alexandre Oliva <aoliva@redhat.com>
for  gcc/testsuite/ChangeLog

PR c++/86823
* g++.dg/pr86823.C: New.

From-SVN: r267144
gcc/cp/ChangeLog
gcc/cp/parser.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/pr86823.C [new file with mode: 0644]