public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/17184] New: Unexpected copy constructor call
@ 2004-08-25 14:13 bill at classdesign dot com
  2004-08-25 14:47 ` [Bug c++/17184] " pinskia at gcc dot gnu dot org
  2004-08-25 14:50 ` pinskia at gcc dot gnu dot org
  0 siblings, 2 replies; 3+ messages in thread
From: bill at classdesign dot com @ 2004-08-25 14:13 UTC (permalink / raw)
  To: gcc-bugs

Following code should compile:

class X
{
   public:
          X()
          {
          }
   private:
          X( const X& );
          X& operator=( const X& );
};

void f( const X& )
{
}

int
main()
{
   f( X() );
   return 0;
}

-- 
           Summary: Unexpected copy constructor call
           Product: gcc
           Version: 3.4.1
            Status: UNCONFIRMED
          Severity: critical
          Priority: P2
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: bill at classdesign dot com
                CC: gcc-bugs at gcc dot gnu dot org
 GCC build triplet: i686-pc-linux-gnu
  GCC host triplet: i686-pc-linux-gnu
GCC target triplet: i686-pc-linux-gnu


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17184


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

end of thread, other threads:[~2004-08-25 14:50 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-08-25 14:13 [Bug c++/17184] New: Unexpected copy constructor call bill at classdesign dot com
2004-08-25 14:47 ` [Bug c++/17184] " pinskia at gcc dot gnu dot org
2004-08-25 14:50 ` pinskia at gcc dot gnu dot org

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).