[cfe-dev] Address of vector component legal?

Chris Lattner clattner at apple.com
Tue Jan 22 10:43:36 PST 2008


On Jan 19, 2008, at 10:18 AM, Eli Friedman wrote:

> Testcase:
> void a() {
> typedef float v4sf __attribute__ ((vector_size (16)));
> static v4sf q;
> float* r = &q[0];
> }
>
> Testcase currently crashes clang -emit-llvm. Is the fact that this
> doesn't currently work just an oversight?  Or is it not supposed to be
> allowed?

This should be rejected, just like address of bitfield.

-Chris



More information about the cfe-dev mailing list