[cfe-commits] r67164 - in /cfe/trunk: lib/CodeGen/CGExpr.cpp test/CodeGen/exprs.c

Eli Friedman eli.friedman at gmail.com
Tue Mar 17 21:40:55 PDT 2009


2009/3/17 Chris Lattner <sabre at nondot.org>:
> +    // Casts are only lvalues when the source and destination types are the
> +    // same.

Not true... take the following testcase (which asserts):
union x {int x; float y;};
int a() {return ((union x)2).x;}

-Eli




More information about the cfe-commits mailing list