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

2024-03-11 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=34121 Andrew Pinski changed: What|Removed |Added Resolution|--- |DUPLICATE Status|UNCONFIRMED

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

2008-12-26 Thread pinskia at gcc dot gnu dot org
--- Comment #5 from pinskia at gcc dot gnu dot org 2008-12-27 06:11 --- I don't think the different pointer matters. There is an extra temporary that shows up on the stack. When doing the expanding of: ;; b.D.21263 = f (); [return slot optimization] We get that extra temp. RSO is not w

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

2008-08-21 Thread gcc-bugzilla at contacts dot eelis dot net
--- Comment #4 from gcc-bugzilla at contacts dot eelis dot net 2008-08-21 12:51 --- Isolated and reproduced with GCC 4.4 on x86_64: #include #include struct A { uint64_t p; char m_ac[18]; A() { std::cout << "default constructed at " << this << '\n'; } ~A() {

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

2007-11-16 Thread peter_foelsche at agilent dot com
--- Comment #2 from peter_foelsche at agilent dot com 2007-11-16 16:42 --- the attached piece of source code does exhibit the compiler problem with the new compiler. When compiling using -O3 the code works fine. When compiling using -g the bug happens. Some temporary objects are being c

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

2007-11-16 Thread peter_foelsche at agilent dot com
--- Comment #3 from peter_foelsche at agilent dot com 2007-11-16 16:45 --- We tested this only for the 64bit version. I don't know if this happens for the 32bit version. The operating system is LINUX: Linux bonfire 2.4.21-47.0.1.EL #1 SMP Fri Oct 13 17:51:36 EDT 2006 x86_64 x86_64 x86_

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

2007-11-16 Thread peter_foelsche at agilent dot com
--- 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