This is the mail archive of the
gcc-prs@gcc.gnu.org
mailing list for the GCC project.
Re: c++/3471: gcc 3.01 reports error about a private copy constructor that shouldn't get called.
- To: ericp at mit dot edu, gcc-bugs at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, gdr at gcc dot gnu dot org, nobody at gcc dot gnu dot org
- Subject: Re: c++/3471: gcc 3.01 reports error about a private copy constructor that shouldn't get called.
- From: gdr at gcc dot gnu dot org
- Date: 12 Aug 2001 09:09:20 -0000
Synopsis: gcc 3.01 reports error about a private copy constructor that shouldn't get called.
Responsible-Changed-From-To: unassigned->gdr
Responsible-Changed-By: gdr
Responsible-Changed-When: Sun Aug 12 02:09:20 2001
Responsible-Changed-Why:
See below.
State-Changed-From-To: open->analyzed
State-Changed-By: gdr
State-Changed-When: Sun Aug 12 02:09:20 2001
State-Changed-Why:
The compiler is at fault on f.test (b). But it is right on
f.test2(b): Argument passing by value is copy-initialization
and the copy-constructor needs to be accessible even if it is
elided.
-- Gaby
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view&pr=3471&database=gcc