[Bug c/86729] New: address of vector element requested
zhonghao at pku dot org.cn
gcc-bugzilla@gcc.gnu.org
Mon Jul 30 07:17:00 GMT 2018
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?
More information about the Gcc-bugs
mailing list