This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: c++/8285: default arg doesn't work in vector
- From: nathan at gcc dot gnu dot org
- To: gcc-bugs at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, nobody at gcc dot gnu dot org, verrola at yahoo dot com
- Date: 19 Oct 2002 15:25:14 -0000
- Subject: Re: c++/8285: default arg doesn't work in vector
- Reply-to: nathan at gcc dot gnu dot org, gcc-bugs at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, nobody at gcc dot gnu dot org, verrola at yahoo dot com, gcc-gnats at gcc dot gnu dot org
Synopsis: default arg doesn't work in vector
State-Changed-From-To: open->feedback
State-Changed-By: nathan
State-Changed-When: Sat Oct 19 08:25:13 2002
State-Changed-Why:
I suspect coding error. You have no user defined copy constructor, therefore one is synthesized by the compiler. If it is ever invoked, you'll end up deleting the same int twice.
Please confirm whether that fixes the problem or not.
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=8285