This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/42743] Inexplicable error message with constructing SIMD values
- From: "jwakely dot gcc at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 14 Jan 2010 12:36:10 -0000
- Subject: [Bug c++/42743] Inexplicable error message with constructing SIMD values
- References: <bug-42743-2551@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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