This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/15375] destuctor not call from 3rd temporary object in expression
- From: "shebeko at mail dot ru" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 14 May 2004 13:57:02 -0000
- Subject: [Bug c++/15375] destuctor not call from 3rd temporary object in expression
- References: <20040511151240.15375.shebeko@mail.ru>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From shebeko at mail dot ru 2004-05-14 13:57 -------
> This works for me, too. You may want to review
> http://gcc.gnu.org/bugs.html
> if you still think that there is a bug, and provide us with the
> information we request there.
I try to follow the bug report rules.
Command line and version:
g++ -v -save-temps -Wall -c -o str_fail.o str_fail.cpp
Using builtin specs.
gcc version 2.95.4 20020320 [FreeBSD]
Program output thrat I have.
Which illustrate that 3rd destructor in expression
iig("str1")&&iig("str2")&&iig("str3") never called
str_t(const char*) p=str1
iig(str1)
str_t(const char*) p=str2
iig(str2)
str_t(const char*) p=str3
iig(str3)
~str_t() p=str2
~str_t() p=str1
str_t(const char*) p=str1
iig(str1)
str_t(const char*) p=str2
iig(str2)
str_t(const char*) p=str3
iig(str3)
~str_t() p=str2
~str_t() p=str1
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15375