public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* Re: c++/8053: don't called copy constructor
@ 2002-09-30  9:56 nathan
  0 siblings, 0 replies; 2+ messages in thread
From: nathan @ 2002-09-30  9:56 UTC (permalink / raw)
  To: gcc-bugs, gcc-prs, nobody, shulga

Synopsis: don't called copy constructor

State-Changed-From-To: open->closed
State-Changed-By: nathan
State-Changed-When: Mon Sep 30 09:56:35 2002
State-Changed-Why:
    not a bug. temporary objects can be elided

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=8053


^ permalink raw reply	[flat|nested] 2+ messages in thread

* c++/8053: don't called copy constructor
@ 2002-09-25 21:46 shulga
  0 siblings, 0 replies; 2+ messages in thread
From: shulga @ 2002-09-25 21:46 UTC (permalink / raw)
  To: gcc-gnats


>Number:         8053
>Category:       c++
>Synopsis:       don't called copy constructor
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Sep 25 21:46:00 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     shulga@ftc.ru
>Release:        gcc 3.0.2
>Organization:
>Environment:
$ uname -a
SunOS host 5.6 Generic_105181-29 sun4u sparc SUNW,Ultra-4

$ gcc -v
Reading specs from /usr/local/gcc302/lib/gcc-lib/sparc-sun-solaris2.6/3.0.2/specs
Configured with: ./configure --prefix=/usr/local/gcc302 --enable-languages=c,c++ --enable-threads=posix
Thread model: posix
gcc version 3.0.2
>Description:
There is no copy constructor call after calling c1(int) constructor in the statement c=c1(100).
>How-To-Repeat:
#include <stdio.h>

class c1 {
public:
  c1(const c1& c) {
    fprintf(stderr,"call c1(const c1&)\n");
  }
  c1(int aa) {
    fprintf(stderr,"call c1(int)\n");
  }
};

int main()
{
  c1 c=c1(10);
}
>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2002-09-30 16:56 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-09-30  9:56 c++/8053: don't called copy constructor nathan
  -- strict thread matches above, loose matches on Subject: below --
2002-09-25 21:46 shulga

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).