public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/51716] New: access to private member possible
@ 2011-12-30 15:55 kuba at et dot pl
  2011-12-31  0:05 ` [Bug c++/51716] " pinskia at gcc dot gnu.org
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: kuba at et dot pl @ 2011-12-30 15:55 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51716

             Bug #: 51716
           Summary: access to private member possible
    Classification: Unclassified
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: minor
          Priority: P3
         Component: c++
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: kuba@et.pl


GCC should generate error here:

class Prv {
private:
  union
  {
    union
    {
      unsigned int Bits;
    };
  };
};

unsigned int getBits(Prv *P) {
  return P->Bits;
}


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

* [Bug c++/51716] access to private member possible
  2011-12-30 15:55 [Bug c++/51716] New: access to private member possible kuba at et dot pl
@ 2011-12-31  0:05 ` pinskia at gcc dot gnu.org
  2012-02-22  7:32 ` pinskia at gcc dot gnu.org
  2021-07-27  0:42 ` pinskia at gcc dot gnu.org
  2 siblings, 0 replies; 4+ messages in thread
From: pinskia at gcc dot gnu.org @ 2011-12-31  0:05 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51716

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2011-12-30
     Ever Confirmed|0                           |1
      Known to fail|                            |4.3.5

--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> 2011-12-30 23:54:21 UTC ---
Confirmed.


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

* [Bug c++/51716] access to private member possible
  2011-12-30 15:55 [Bug c++/51716] New: access to private member possible kuba at et dot pl
  2011-12-31  0:05 ` [Bug c++/51716] " pinskia at gcc dot gnu.org
@ 2012-02-22  7:32 ` pinskia at gcc dot gnu.org
  2021-07-27  0:42 ` pinskia at gcc dot gnu.org
  2 siblings, 0 replies; 4+ messages in thread
From: pinskia at gcc dot gnu.org @ 2012-02-22  7:32 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51716

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |maxim.prohorenko at gmail
                   |                            |dot com

--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> 2012-02-22 07:31:38 UTC ---
*** Bug 52336 has been marked as a duplicate of this bug. ***


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

* [Bug c++/51716] access to private member possible
  2011-12-30 15:55 [Bug c++/51716] New: access to private member possible kuba at et dot pl
  2011-12-31  0:05 ` [Bug c++/51716] " pinskia at gcc dot gnu.org
  2012-02-22  7:32 ` pinskia at gcc dot gnu.org
@ 2021-07-27  0:42 ` pinskia at gcc dot gnu.org
  2 siblings, 0 replies; 4+ messages in thread
From: pinskia at gcc dot gnu.org @ 2021-07-27  0:42 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |5.0
         Resolution|---                         |DUPLICATE
             Status|NEW                         |RESOLVED

--- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Dup of bug 24926.

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

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

end of thread, other threads:[~2021-07-27  0:42 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-12-30 15:55 [Bug c++/51716] New: access to private member possible kuba at et dot pl
2011-12-31  0:05 ` [Bug c++/51716] " pinskia at gcc dot gnu.org
2012-02-22  7:32 ` pinskia at gcc dot gnu.org
2021-07-27  0:42 ` 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).