[Bug libstdc++/57394] [C++11] basic_streambuf incorrect copy constructor / copy assignment access specifier
redi at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Thu May 8 17:17:00 GMT 2014
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57394
--- Comment #3 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Author: redi
Date: Thu May 8 17:17:06 2014
New Revision: 210228
URL: http://gcc.gnu.org/viewcvs?rev=210228&root=gcc&view=rev
Log:
PR libstdc++/57394
* include/bits/ios_base.h (ios_base(const ios_base&)): Define as
deleted for C++11.
(operator=(const ios_base&)): Likewise.
* include/std/streambuf: Remove trailing whitespace.
(basic_streambuf(const basic_streambuf&)): Fix initializer for
_M_out_end. Define as defaulted for C++11.
(operator=(const basic_streambuf&)): Define as defaulted for C++11.
(swap(basic_streambuf&)): Define for C++11.
* testsuite/27_io/basic_streambuf/cons/57394.cc: New.
Added:
trunk/libstdc++-v3/testsuite/27_io/basic_streambuf/cons/57394.cc
Modified:
trunk/libstdc++-v3/ChangeLog
trunk/libstdc++-v3/include/bits/ios_base.h
trunk/libstdc++-v3/include/std/streambuf
More information about the Gcc-bugs
mailing list