public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/82613] Cannot access private definitions in base clause of friend class template
       [not found] <bug-82613-4@http.gcc.gnu.org/bugzilla/>
@ 2021-01-18  4:04 ` ppalka at gcc dot gnu.org
  2021-01-20 14:55 ` cvs-commit at gcc dot gnu.org
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 4+ messages in thread
From: ppalka at gcc dot gnu.org @ 2021-01-18  4:04 UTC (permalink / raw)
  To: gcc-bugs

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

Patrick Palka <ppalka at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |ASSIGNED
                 CC|                            |ppalka at gcc dot gnu.org
           Assignee|unassigned at gcc dot gnu.org      |ppalka at gcc dot gnu.org

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug c++/82613] Cannot access private definitions in base clause of friend class template
       [not found] <bug-82613-4@http.gcc.gnu.org/bugzilla/>
  2021-01-18  4:04 ` [Bug c++/82613] Cannot access private definitions in base clause of friend class template ppalka at gcc dot gnu.org
@ 2021-01-20 14:55 ` cvs-commit at gcc dot gnu.org
  2021-01-20 14:57 ` ppalka at gcc dot gnu.org
  2021-12-08 16:12 ` pinskia at gcc dot gnu.org
  3 siblings, 0 replies; 4+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2021-01-20 14:55 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #3 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Patrick Palka <ppalka@gcc.gnu.org>:

https://gcc.gnu.org/g:79e1251b642db038df276153c9f2ec6b82e56162

commit r11-6815-g79e1251b642db038df276153c9f2ec6b82e56162
Author: Patrick Palka <ppalka@redhat.com>
Date:   Wed Jan 20 09:43:48 2021 -0500

    c++: Defer access checking when processing bases [PR82613]

    When parsing the base-clause of a class declaration, we need to defer
    access checking until the entire base-clause has been seen, so that
    access can be properly checked relative to the scope of the class with
    all its bases attached.  This allows us to accept the declaration of
    struct D from Example 2 of [class.access.general] (access12.C below).

    Similarly when substituting into the base-clause of a class template,
    which is the subject of PR82613.

    gcc/cp/ChangeLog:

            PR c++/82613
            * parser.c (cp_parser_class_head): Defer access checking when
            parsing the base-clause until all bases are seen and attached
            to the class type.
            * pt.c (instantiate_class_template): Likewise when substituting
            into dependent bases.

    gcc/testsuite/ChangeLog:

            PR c++/82613
            * g++.dg/parse/access12.C: New test.
            * g++.dg/template/access35.C: New test.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug c++/82613] Cannot access private definitions in base clause of friend class template
       [not found] <bug-82613-4@http.gcc.gnu.org/bugzilla/>
  2021-01-18  4:04 ` [Bug c++/82613] Cannot access private definitions in base clause of friend class template ppalka at gcc dot gnu.org
  2021-01-20 14:55 ` cvs-commit at gcc dot gnu.org
@ 2021-01-20 14:57 ` ppalka at gcc dot gnu.org
  2021-12-08 16:12 ` pinskia at gcc dot gnu.org
  3 siblings, 0 replies; 4+ messages in thread
From: ppalka at gcc dot gnu.org @ 2021-01-20 14:57 UTC (permalink / raw)
  To: gcc-bugs

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

Patrick Palka <ppalka at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |FIXED
             Status|ASSIGNED                    |RESOLVED
   Target Milestone|---                         |11.0

--- Comment #4 from Patrick Palka <ppalka at gcc dot gnu.org> ---
Fixed for GCC 11.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug c++/82613] Cannot access private definitions in base clause of friend class template
       [not found] <bug-82613-4@http.gcc.gnu.org/bugzilla/>
                   ` (2 preceding siblings ...)
  2021-01-20 14:57 ` ppalka at gcc dot gnu.org
@ 2021-12-08 16:12 ` pinskia at gcc dot gnu.org
  3 siblings, 0 replies; 4+ messages in thread
From: pinskia at gcc dot gnu.org @ 2021-12-08 16:12 UTC (permalink / raw)
  To: gcc-bugs

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

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jobstz at posteo dot de

--- Comment #5 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
*** Bug 91609 has been marked as a duplicate of this bug. ***

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2021-12-08 16:12 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-82613-4@http.gcc.gnu.org/bugzilla/>
2021-01-18  4:04 ` [Bug c++/82613] Cannot access private definitions in base clause of friend class template ppalka at gcc dot gnu.org
2021-01-20 14:55 ` cvs-commit at gcc dot gnu.org
2021-01-20 14:57 ` ppalka at gcc dot gnu.org
2021-12-08 16:12 ` pinskia at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).