https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86729
Bug ID: 86729 Summary: address of vector element requested Product: gcc Version: 9.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: zhonghao at pku dot org.cn Target Milestone: --- gcc accepts the following code: void a() { typedef float v4sf __attribute__ ((vector_size (16))); static v4sf q; float* r = &q[0]; } clang rejects it: clang code1.c code1.c:4:13: error: address of vector element requested float* r = &q[0]; ^~~~~ 1 error generated. The error message of clang seems to be reasonable?