https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117197
--- Comment #4 from Joseph S. Myers ---
On the whole I'd expect vector initializers to work like structure ones: that a
vector can be initialized either with another vector of the same type, or with
brace-enclosed scalars, and that inside a brac
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117197
--- Comment #3 from Richard Biener ---
struct b {
__attribute__((vector_size(4))) int a;
};
int c;
void d() { struct b e = {0, 1, 2, 3}; }
shows
t.c: In function ādā:
t.c:5:29: warning: excess elements in struct initializer
5 | void d()
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117197
Richard Biener changed:
What|Removed |Added
Keywords||wrong-code
CC|
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117197
Andrew Pinski changed:
What|Removed |Added
Keywords||ice-on-valid-code
Ever confirmed|0