This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/55805] Empty brace-init-list causes warning "missing initializer for member" in C++11
- From: "redi at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 16 Jun 2015 10:01:06 +0000
- Subject: [Bug c++/55805] Empty brace-init-list causes warning "missing initializer for member" in C++11
- Auto-submitted: auto-generated
- References: <bug-55805-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55805
--- Comment #3 from Jonathan Wakely <redi at gcc dot gnu.org> ---
(In reply to Gubbins from comment #2)
> The original bug report points that in C++11 this is *not* aggregate
> initialization, but is in fact value initialization (because this is a class
> type with a default constructor).
No it isn't, it's an aggregate.