This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/66139] destructor not called for members of partially constructed anonymous struct/array
- From: "majerech.o at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 10 May 2017 13:50:45 +0000
- Subject: [Bug c++/66139] destructor not called for members of partially constructed anonymous struct/array
- Auto-submitted: auto-generated
- References: <bug-66139-4@http.gcc.gnu.org/bugzilla/>
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.