Bug 57913 - [C++11] Explicitly defaulted constructor does not respect access specifier
Summary: [C++11] Explicitly defaulted constructor does not respect access specifier
Status: RESOLVED DUPLICATE of bug 56429
Alias: None
Product: gcc
Classification: Unclassified
Component: c++ (show other bugs)
Version: 4.8.1
: P3 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL: http://gcc.godbolt.org/#%7B%22version...
Keywords:
Depends on:
Blocks:
 
Reported: 2013-07-16 16:14 UTC by Charlie
Modified: 2013-07-16 16:25 UTC (History)
0 users

See Also:
Host:
Target:
Build:
Known to work:
Known to fail:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Charlie 2013-07-16 16:14:51 UTC
In particular, the following and similar examples will compile:

class X
{
  X() = default; // Should be private
};

int main()
{
  X x;
}

Tested with GCC Explorer.
Comment 1 Jonathan Wakely 2013-07-16 16:25:14 UTC
dup

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