This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/35782] support for standard layout types
- From: "jason at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 17 Sep 2008 21:17:02 -0000
- Subject: [Bug c++/35782] support for standard layout types
- References: <bug-35782-365@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #7 from jason at gcc dot gnu dot org 2008-09-17 21:17 -------
8.5.1 says "An aggregate is an array or a class (Clause 9) with ... no base
classes (Clause 10)...."
Lawrence's suggestion won't work because the copy constructor is deleted. To
make aggregate initialization work, we need to expand the definition of
aggregate to include classes with user-provided constructors that are all
deleted.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35782