[Bug c++/18194] g++ passes struct by reference instead of by value if non-default destructor exists

2004-10-28 Thread horst dot reiterer at fabasoft dot com
--- Additional Comments From horst dot reiterer at fabasoft dot com 2004-10-28 14:31 --- (In reply to comment #3) > The definition of ObjectAddress is incompatible, > there for this is undefined behavior. You're right, the code relies on undefined behavior. My main questi

[Bug c++/18194] g++ passes struct by reference instead of by value if non-default destructor exists

2004-10-28 Thread horst dot reiterer at fabasoft dot com
-- What|Removed |Added Summary|g++ passes struct by|g++ passes struct by |reference instead of by |reference instead of by

[Bug c++/18194] g++ passes struct by reference instead of by value if non-default constructor exists

2004-10-28 Thread horst dot reiterer at fabasoft dot com
--- Additional Comments From horst dot reiterer at fabasoft dot com 2004-10-28 10:50 --- (In reply to comment #0) > /* CASE 1: non-default constructor > (...) > /* CASE 2: default constructor 'Constructor' was of course a typo, should have been '

[Bug c++/18194] g++ passes struct by reference instead of by value if non-default constructor exists

2004-10-28 Thread horst dot reiterer at fabasoft dot com
--- Additional Comments From horst dot reiterer at fabasoft dot com 2004-10-28 10:46 --- Created an attachment (id=7423) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=7423&action=view) Testcase tarball containing the two source files and a corresponding makefile --

[Bug c++/18194] New: g++ passes struct by reference instead of by value if non-default constructor exists

2004-10-28 Thread horst dot reiterer at fabasoft dot com
lue if non-default constructor exists Product: gcc Version: 3.4.2 Status: UNCONFIRMED Severity: normal Priority: P2 Component: c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: horst dot reiterer