This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/17184] New: Unexpected copy constructor call
- From: "bill at classdesign dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 25 Aug 2004 14:13:20 -0000
- Subject: [Bug c++/17184] New: Unexpected copy constructor call
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
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