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 #10 from Ondřej Majerech <majerech.o at gmail dot com> ---
That SO answer appears to be plain out wrong. Running your snippet on GCC 6.3.1
and 8.0.0 20170507, the program calls terminate for me, even with the cout <<
"Welcome" line included.

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