This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/57977] zero-length const array in union prohibits default copy xtor
- From: "pinskia at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 25 Jul 2013 05:37:34 +0000
- Subject: [Bug c++/57977] zero-length const array in union prohibits default copy xtor
- Auto-submitted: auto-generated
- References: <bug-57977-4 at http dot gcc dot gnu dot org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57977
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
It is not the zero length which is causing the copy constructor to be created
but rather the const part which causes the copy constructor to happen.