This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/12591] gcc accepts invalid code
- From: "falk at debian dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 13 Oct 2003 11:21:53 -0000
- Subject: [Bug c++/12591] gcc accepts invalid code
- References: <20031012204520.12591.hg211@ural2.hszk.bme.hu>
- 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=12591
------- Additional Comments From falk at debian dot org 2003-10-13 11:21 -------
Compaq's compiler says this when enabling strict ANSI mode:
cxx: Warning: test.cc, line 8: "foo::foo(const foo &)", required for copy that
was eliminated, is inaccessible
const foo &bar = foo();
-----------------^
So it is not invalid because the copy was eliminated, which to do the compiler
is allowed.
Maybe we could modify this to a low priority warning request for something
similar.