This is the mail archive of the gcc-bugs@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]
Other format: [Raw text]

[Bug c++/34121] wrong this pointer passed to constructor of temporary object



------- Comment #1 from peter_foelsche at agilent dot com  2007-11-16 16:38 -------
Created an attachment (id=14564)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=14564&action=view)
test.cpp

contains a main function at the end which calls printf() with some temporary
objects. I put printf() into every constructor and every destructor to show the
this pointer.


-- 


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


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