This is the mail archive of the gcc-prs@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]

Re: c++/3471: gcc 3.01 reports error about a private copy constructor that shouldn't get called.


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


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