Re: [Bug c/33192] New: __imag operator drops side effects in subexpr

2007-08-26 Thread Andrew Pinski
On 26 Aug 2007 05:21:22 -, sabre at nondot dot org <[EMAIL PROTECTED]> wrote: > to not call bar. The problem is in c-typeck.c (build_unary_op) (around line 2986). the code looks like: if (TREE_CODE (arg) == COMPLEX_CST) return TREE_IMAGPART (arg); else if (TREE_CODE (TREE_T

[Bug c/33192] New: __imag operator drops side effects in subexpr

2007-08-25 Thread sabre at nondot dot org
GCC miscompiles this: int bar(); void foo() { int X = __imag bar(); } to not call bar. -Chris -- Summary: __imag operator drops side effects in subexpr Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priorit