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]

Re: c++ code generation bug


>   With optimisation (-O or -O2) destructors can be run for temporaries
>   in conditional expressions, even when the temporary `belongs' to the
>   other branch of the conditional and has not been constructed.

Thanks for your bug report. gcc-2.95.2 compiles your code correctly.

Regards,
Martin

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