public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/57913] New: [C++11] Explicitly defaulted constructor does not respect access specifier
@ 2013-07-16 16:16 charlie at charliedyson dot net
2013-07-16 16:27 ` [Bug c++/57913] " redi at gcc dot gnu.org
0 siblings, 1 reply; 2+ messages in thread
From: charlie at charliedyson dot net @ 2013-07-16 16:16 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57913
Bug ID: 57913
Summary: [C++11] Explicitly defaulted constructor does not
respect access specifier
Product: gcc
Version: 4.8.1
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: charlie at charliedyson dot net
In particular, the following and similar examples will compile:
class X
{
X() = default; // Should be private
};
int main()
{
X x;
}
Tested with GCC Explorer.
^ permalink raw reply [flat|nested] 2+ messages in thread
* [Bug c++/57913] [C++11] Explicitly defaulted constructor does not respect access specifier
2013-07-16 16:16 [Bug c++/57913] New: [C++11] Explicitly defaulted constructor does not respect access specifier charlie at charliedyson dot net
@ 2013-07-16 16:27 ` redi at gcc dot gnu.org
0 siblings, 0 replies; 2+ messages in thread
From: redi at gcc dot gnu.org @ 2013-07-16 16:27 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57913
Jonathan Wakely <redi at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution|--- |DUPLICATE
--- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> ---
dup
*** This bug has been marked as a duplicate of bug 56429 ***
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2013-07-16 16:27 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-07-16 16:16 [Bug c++/57913] New: [C++11] Explicitly defaulted constructor does not respect access specifier charlie at charliedyson dot net
2013-07-16 16:27 ` [Bug c++/57913] " 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).