public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/47346] New: access control for nested type is ignored in class template
@ 2011-01-18 15:42 redi at gcc dot gnu.org
  2011-03-11 18:04 ` [Bug c++/47346] " redi at gcc dot gnu.org
                   ` (19 more replies)
  0 siblings, 20 replies; 21+ messages in thread
From: redi at gcc dot gnu.org @ 2011-01-18 15:42 UTC (permalink / raw)
  To: gcc-bugs

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

           Summary: access control for nested type is ignored in class
                    template
           Product: gcc
           Version: 4.6.0
            Status: UNCONFIRMED
          Keywords: accepts-invalid
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: redi@gcc.gnu.org


There are several bugs about failure to do access checking for template
parameters and in function templates (PR 40901, PR 41437, PR 45011, PR 45917)
but I don't think this is a dup of any of them

class C
{
  struct Private { };
};

template<typename T>
struct exploit1
{
    typedef C::Private type;
};

exploit1<int>::type x1;   // error

// similarly for base-specifier
template<typename T>
struct exploit2 : C::Private
{
};

exploit2<int> x2;   // error


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

end of thread, other threads:[~2021-08-05  7:58 UTC | newest]

Thread overview: 21+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-01-18 15:42 [Bug c++/47346] New: access control for nested type is ignored in class template redi at gcc dot gnu.org
2011-03-11 18:04 ` [Bug c++/47346] " redi at gcc dot gnu.org
2011-06-13  9:11 ` redi at gcc dot gnu.org
2011-07-28 18:25 ` dodji at gcc dot gnu.org
2011-08-11 18:42 ` dodji at gcc dot gnu.org
2011-08-11 18:54 ` dodji at gcc dot gnu.org
2011-08-17 15:43 ` dodji at gcc dot gnu.org
2011-09-29  6:11 ` paolo.carlini at oracle dot com
2011-09-30 10:34 ` dodji at seketeli dot org
2011-09-30 10:44 ` paolo.carlini at oracle dot com
2011-09-30 12:06 ` dodji at seketeli dot org
2011-10-18 11:32 ` paolo.carlini at oracle dot com
2013-03-27 13:28 ` jason at gcc dot gnu.org
2013-07-06 23:42 ` paolo.carlini at oracle dot com
2013-11-12  1:07 ` redi at gcc dot gnu.org
2013-11-19 16:28 ` paolo.carlini at oracle dot com
2020-06-16 12:59 ` cvs-commit at gcc dot gnu.org
2020-06-16 12:59 ` cvs-commit at gcc dot gnu.org
2020-06-16 13:02 ` ppalka at gcc dot gnu.org
2020-06-16 13:03 ` ppalka at gcc dot gnu.org
2021-08-05  7:58 ` 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).