public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/85790] c++17 - Access control issue with template argument deduction
       [not found] <bug-85790-4@http.gcc.gnu.org/bugzilla/>
@ 2021-07-28 14:09 ` pinskia at gcc dot gnu.org
  2021-08-02  9:24 ` redi at gcc dot gnu.org
  2021-08-02  9:28 ` redi at gcc dot gnu.org
  2 siblings, 0 replies; 3+ messages in thread
From: pinskia at gcc dot gnu.org @ 2021-07-28 14:09 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |rejects-valid

--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Seems to be fixed on the trunk.

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

* [Bug c++/85790] c++17 - Access control issue with template argument deduction
       [not found] <bug-85790-4@http.gcc.gnu.org/bugzilla/>
  2021-07-28 14:09 ` [Bug c++/85790] c++17 - Access control issue with template argument deduction pinskia at gcc dot gnu.org
@ 2021-08-02  9:24 ` redi at gcc dot gnu.org
  2021-08-02  9:28 ` redi at gcc dot gnu.org
  2 siblings, 0 replies; 3+ messages in thread
From: redi at gcc dot gnu.org @ 2021-08-02  9:24 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #3 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Fixed by r12-926

    c++: implicit deduction guides, protected access

    Jonathan raised this issue with CWG, and there seems to be general
agreement
    that a deduction guide generated from a constructor should have access to
    the same names that the constructor has access to.  That seems to be as
easy
    as setting DECL_CONTEXT.

    gcc/cp/ChangeLog:

            * pt.c (build_deduction_guide): Treat the implicit deduction guide
            as a member of the class.

    gcc/testsuite/ChangeLog:

            * g++.dg/cpp1z/class-deduction-access1.C: New test.
            * g++.dg/cpp1z/class-deduction-access2.C: New test.

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

* [Bug c++/85790] c++17 - Access control issue with template argument deduction
       [not found] <bug-85790-4@http.gcc.gnu.org/bugzilla/>
  2021-07-28 14:09 ` [Bug c++/85790] c++17 - Access control issue with template argument deduction pinskia at gcc dot gnu.org
  2021-08-02  9:24 ` redi at gcc dot gnu.org
@ 2021-08-02  9:28 ` redi at gcc dot gnu.org
  2 siblings, 0 replies; 3+ messages in thread
From: redi at gcc dot gnu.org @ 2021-08-02  9:28 UTC (permalink / raw)
  To: gcc-bugs

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

Jonathan Wakely <redi at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |12.0
         Resolution|---                         |FIXED
             Status|NEW                         |RESOLVED

--- Comment #4 from Jonathan Wakely <redi at gcc dot gnu.org> ---
.

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

end of thread, other threads:[~2021-08-02  9:28 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-85790-4@http.gcc.gnu.org/bugzilla/>
2021-07-28 14:09 ` [Bug c++/85790] c++17 - Access control issue with template argument deduction pinskia at gcc dot gnu.org
2021-08-02  9:24 ` redi at gcc dot gnu.org
2021-08-02  9:28 ` redi 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).