public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/58129] New: [C++11] Lack of access control checking using auto type deduction
@ 2013-08-11 20:59 abikineev at termt dot com
  2013-08-12  8:30 ` [Bug c++/58129] " redi at gcc dot gnu.org
  0 siblings, 1 reply; 2+ messages in thread
From: abikineev at termt dot com @ 2013-08-11 20:59 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 58129
           Summary: [C++11] Lack of access control checking using auto
                    type deduction
           Product: gcc
           Version: 4.8.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: abikineev at termt dot com

There is no access control via using auto keyword for nested classes:

class A
{
    class Private{};

public:
    static Private foo()
    {
        return Private();
    }
};

int main()
{
    A::Private normal = A::foo(); // OK: compiler produces error;
    auto error = A::foo(); // ERROR: compiler doesn't see error;
}


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

end of thread, other threads:[~2013-08-12  8:30 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-08-11 20:59 [Bug c++/58129] New: [C++11] Lack of access control checking using auto type deduction abikineev at termt dot com
2013-08-12  8:30 ` [Bug c++/58129] " 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).