This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: [Bug c++/33350] copy constructor error
- From: "Andrew Pinski" <pinskia at gcc dot gnu dot org>
- To: gcc-bugzilla at gcc dot gnu dot org
- Cc: gcc-bugs at gcc dot gnu dot org
- Date: Sun, 9 Sep 2007 03:33:02 -0700
- Subject: Re: [Bug c++/33350] copy constructor error
- References: <bug-33350-7533@http.gcc.gnu.org/bugzilla/> <20070909052620.1954.qmail@sourceware.org>
> ------- Comment #4 from stevenyi at 163 dot com 2007-09-09 05:26 -------
> I can not see any reason to call the copy constructor here. If you remove
> keyword explicit so that let the code compile, you can find that the copy
> constructor is not called at all.
Again the 1998 standard (as written) says that even if the copy
constructor is not called in this case, it needs to be able to be
called implicitly.
I am not making this up.
-- Pinski