This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/55805] Empty brace-init-list causes warning "missing initializer for member" in C++11


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55805

Gubbins <dave.gittins at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |dave.gittins at gmail dot com

--- Comment #2 from Gubbins <dave.gittins at gmail dot com> ---
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).

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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]