This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/34180] Default copy constructor copies const auto_ptr members



------- Comment #2 from pcarlini at suse dot de  2007-11-21 23:21 -------
I think this is the issue, nothing specific to std::auto_ptr:

struct G { G() { } G(G&) { } };

int main()
{
  class A
  {
    const G g;
  };
  A a;
  A b = a;
}


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34180


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]