http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33193
--- Comment #4 from Nathan Froyd <froydnj at gcc dot gnu.org> 2010-11-18 16:25:04 UTC --- Author: froydnj Date: Thu Nov 18 16:24:56 2010 New Revision: 166909 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=166909 Log: gcc/ PR c/33193 * c-typeck.c (build_unary_op): Call build_real_imag_expr for REALPART_EXPR and IMAGPART_EXPR. gcc/c-family/ PR c/33193 * c-common.h (build_real_imag_expr): Declare. * c-semantics.c (build_real_imag_expr): Define. gcc/cp/ PR c/33193 * typeck.c (cp_build_unary_op): Call build_real_imag_expr for REALPART_EXPR and IMAGPART_EXPR. gcc/testsuite/ PR c/33193 * c-c++-common/pr33193.c: New test. Added: trunk/gcc/testsuite/c-c++-common/pr33193.c Modified: trunk/gcc/ChangeLog trunk/gcc/c-family/ChangeLog trunk/gcc/c-family/c-common.h trunk/gcc/c-family/c-semantics.c trunk/gcc/c-typeck.c trunk/gcc/cp/ChangeLog trunk/gcc/cp/typeck.c trunk/gcc/testsuite/ChangeLog