c++/3471: gcc 3.01 reports error about a private copy constructor that shouldn't get called.
gdr@gcc.gnu.org
gdr@gcc.gnu.org
Sun Aug 12 02:09:00 GMT 2001
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
More information about the Gcc-prs
mailing list