public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/90925] gcc allows calling private overridden operators
       [not found] <bug-90925-4@http.gcc.gnu.org/bugzilla/>
@ 2020-03-12 16:04 ` redi at gcc dot gnu.org
  2020-06-16 14:32 ` redi at gcc dot gnu.org
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 4+ messages in thread
From: redi at gcc dot gnu.org @ 2020-03-12 16:04 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Last reconfirmed|2019-06-19 00:00:00         |2020-3-12

--- Comment #5 from Jonathan Wakely <redi at gcc dot gnu.org> ---
(In reply to zhonghao from comment #0)
> My gcc is 10.0.0, and my code is:
> 
> class a {
>  private: template <typename b> a &operator<<(b);
> };
> a c();
> template <typename> a fn2() {
>  int d;
>  return c() << d;
> }
> 
> gcc accepts the code, but clang rejects it:
> 
>  error: 'operator<<' is a private member of 'a'
>   return c() << d;
>          ~~~ ^  ~
>  note: implicitly declared private here
>   template <typename b> a &operator<<(b);
>                            ^
> 1 error generated.


This is probably another dup of PR 41437

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

* [Bug c++/90925] gcc allows calling private overridden operators
       [not found] <bug-90925-4@http.gcc.gnu.org/bugzilla/>
  2020-03-12 16:04 ` [Bug c++/90925] gcc allows calling private overridden operators redi at gcc dot gnu.org
@ 2020-06-16 14:32 ` redi at gcc dot gnu.org
  2021-08-04  5:54 ` pinskia at gcc dot gnu.org
  2022-01-05 15:41 ` ppalka at gcc dot gnu.org
  3 siblings, 0 replies; 4+ messages in thread
From: redi at gcc dot gnu.org @ 2020-06-16 14:32 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #6 from Jonathan Wakely <redi at gcc dot gnu.org> ---
(In reply to Jonathan Wakely from comment #5)
> This is probably another dup of PR 41437

Apparently not.

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

* [Bug c++/90925] gcc allows calling private overridden operators
       [not found] <bug-90925-4@http.gcc.gnu.org/bugzilla/>
  2020-03-12 16:04 ` [Bug c++/90925] gcc allows calling private overridden operators redi at gcc dot gnu.org
  2020-06-16 14:32 ` redi at gcc dot gnu.org
@ 2021-08-04  5:54 ` pinskia at gcc dot gnu.org
  2022-01-05 15:41 ` ppalka at gcc dot gnu.org
  3 siblings, 0 replies; 4+ messages in thread
From: pinskia at gcc dot gnu.org @ 2021-08-04  5:54 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           See Also|                            |https://gcc.gnu.org/bugzill
                   |                            |a/show_bug.cgi?id=55361

--- Comment #7 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55361#c5 I suspect applies here.

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

* [Bug c++/90925] gcc allows calling private overridden operators
       [not found] <bug-90925-4@http.gcc.gnu.org/bugzilla/>
                   ` (2 preceding siblings ...)
  2021-08-04  5:54 ` pinskia at gcc dot gnu.org
@ 2022-01-05 15:41 ` ppalka at gcc dot gnu.org
  3 siblings, 0 replies; 4+ messages in thread
From: ppalka at gcc dot gnu.org @ 2022-01-05 15:41 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ppalka at gcc dot gnu.org
             Status|NEW                         |RESOLVED
         Resolution|---                         |DUPLICATE

--- Comment #8 from Patrick Palka <ppalka at gcc dot gnu.org> ---
(In reply to Andrew Pinski from comment #7)
> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55361#c5 I suspect applies here.

Yeah, this seems to be essentially a dup of PR55361

*** This bug has been marked as a duplicate of bug 55361 ***

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

end of thread, other threads:[~2022-01-05 15:41 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-90925-4@http.gcc.gnu.org/bugzilla/>
2020-03-12 16:04 ` [Bug c++/90925] gcc allows calling private overridden operators redi at gcc dot gnu.org
2020-06-16 14:32 ` redi at gcc dot gnu.org
2021-08-04  5:54 ` pinskia at gcc dot gnu.org
2022-01-05 15:41 ` ppalka 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).