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: "dave.gittins at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 16 Jun 2015 11:06:46 +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 #5 from Gubbins <dave.gittins at gmail dot com> ---
(In reply to Jonathan Wakely from comment #4)
> (In reply to Gubbins from comment #2)
> > Therefore no field initializers are involved. The warning in this situation
> > is surely incorrect? I think the original bug report was correct and the
> > problem should be fixed.
>
> In any case, there is no warning for any currently supported release, and we
> are not making any more releases from the gcc 4.7 branch, so there's nothing
> to fix.
The warning is still produced with gcc 4.9.2 (surely that's supported?)