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++/66139] destructor not called for members of partially constructed anonymous struct/array


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66139

--- Comment #11 from Xi Ruoyao <ryxi at stu dot xidian.edu.cn> ---
This happens for all TARGET_EXPRs with the third operand (cleanup expression),
as an INIT_EXPR's rhs.

The cleanup sequence are pushed in gimplify_target_expr, which doesn't
handle TARGET_EXPRs as the INIT_EXPRs' rhs.  So they just go missing.

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