This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/12226] g++ fails to enforce accessibility requirement for copy constructor
- From: "austern at apple dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 9 Sep 2003 18:02:22 -0000
- Subject: [Bug c++/12226] g++ fails to enforce accessibility requirement for copy constructor
- References: <20030909174601.12226.austern@apple.com>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12226
------- Additional Comments From austern at apple dot com 2003-09-09 18:02 -------
Oh, one more quote from the standard: clause 12.2, paragraph 1: "Temporaries of class types are
created in various contexts ... Even when the creation of the temporary object is avoided, all the
semantic checks must be respected as if the temporary object was created."