https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86823

--- Comment #7 from Alexandre Oliva <aoliva at gcc dot gnu.org> ---
Author: aoliva
Date: Fri Dec 14 20:06:15 2018
New Revision: 267144

URL: https://gcc.gnu.org/viewcvs?rev=267144&root=gcc&view=rev
Log:
[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 <ja...@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 <aol...@redhat.com>
for  gcc/testsuite/ChangeLog

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

Added:
    trunk/gcc/testsuite/g++.dg/pr86823.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/parser.c
    trunk/gcc/testsuite/ChangeLog

Reply via email to