Issue |
83996
|
Summary |
[c++] error: address of vector element requested
|
Labels |
new issue
|
Assignees |
|
Reporter |
vfdff
|
* test: https://gcc.godbolt.org/z/z3bnbvn14
```
void testVectorComponentAccess() {
typedef float v4sf __attribute__ ((vector_size (16)));
static v4sf q;
float* r = &q[0]; // expected-error {{address of vector element requested}}
}
```
For above small case, the gcc accepts, while llvm report a error, so does it a **GCC extension** ?
the above case is spilted from [expr-address-of.c](https://chromium.googlesource.com/external/github.com/kripken/emscripten-fastcomp-clang/+/refs/tags/1.30.0/test/Sema/expr-address-of.c)
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs