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++/42743] Inexplicable error message with constructing SIMD values



------- Comment #1 from jwakely dot gcc at gmail dot com  2010-01-14 12:36 -------
(In reply to comment #0)

>     vec_t tmp2 = {};      // Causes warnings about uninitialized members in
> myvec

The warning doesn't smean it's uninitialized, just that there are not
initializers present for all members:

       -Wmissing-field-initializers
           Warn if a structure's initializer has some fields missing.  For
example, the following code would cause such a warning, because "x.h" is
implicitly
           zero:

                   struct s { int f, g, h; };
                   struct s x = { 3, 4 };

You can disable that with -Wno-missing-field-initializers (but that doesn't
help for cases where vec_t cannot be aggregate initialized)


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42743


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