[cfe-commits] r63519 - in /cfe/trunk: lib/Sema/SemaDecl.cpp test/Sema/static-init.c

Eli Friedman eli.friedman at gmail.com
Mon Feb 2 12:57:39 PST 2009


On Mon, Feb 2, 2009 at 8:07 AM, Nuno Lopes <nunoplopes at sapo.pt> wrote:
> -      if (!Base)
> -        return CheckAddressConstantExpression(SubExpr);
> +      return Base ? false : CheckAddressConstantExpression(SubExpr);
>     }

If you're going to add an ugly hack, please add a FIXME as well.

> +union bar u[1];
> +struct foo x = {(int) u}; // no-error

This test should fail on 64-bit targets... at a minimum, I'd suggest a FIXME.

-Eli



More information about the cfe-commits mailing list