[Bug c++/44313] g++ no longer warns about private copy constructors

redi at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Thu Dec 13 11:33:00 GMT 2018


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=44313

--- Comment #7 from Jonathan Wakely <redi at gcc dot gnu.org> ---
And for completeness, the docs have been updated:

Starting with GCC 4.3.0, GCC no longer gives an error for this case. This
change is based on the intent of the C++ language committee. As of 2010-05-28,
the final proposed draft of the C++0x standard permits this code without error.

I wonder if we should just remove that whole section, nobody cares about GCC
4.2.x now. I think I proposed a patch years ago to rip that whole section out,
but it never happened.


More information about the Gcc-bugs mailing list