[Bug c++/34180] Default copy constructor copies const auto_ptr members
jeidsath at gmail dot com
gcc-bugzilla@gcc.gnu.org
Wed Nov 21 22:45:00 GMT 2007
------- Comment #1 from jeidsath at gmail dot com 2007-11-21 22:45 -------
I apologize, a line was incorrectly cut from the copy and paste, here is the
full code that should not compile, but does:
#include <memory>
int main()
{
class A
{
const std::auto_ptr<int> a;
};
A a;
A b = a;
}
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34180
More information about the Gcc-bugs
mailing list