[cfe-dev] Issue with designated initializers and vectors
Eli Friedman
eli.friedman at gmail.com
Sat Jun 13 03:39:42 PDT 2009
On Sat, Jun 13, 2009 at 2:58 AM, Mattias Holm<holm at liacs.nl> wrote:
> The following code fails in clang:
>
> typedef float __attribute__((vector_size (16))) v4f_t;
>
> typedef union {
> struct {
> float x, y, z, w;
> }s;
> v4f_t v;
> } vector_t;
>
>
> vector_t foo(v4f_t p)
> {
> vector_t v = {.v = p};
> return v;
> }
Thanks for the report; fixed in r73292.
-Eli
More information about the cfe-dev
mailing list