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++/15375] destuctor not call from 3rd temporary object in expression


------- 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


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