/* The gimplifier was inserting unwanted temporaries for REALPART_EXPR
   nodes.  These need to be treated like a COMPONENT_REF so their address can
   be taken.  */

void abort(void);
void exit(int);

int main() {
    __complex double dc;
    double *dp = &(__real dc);
    *dp = 3.14;
    if ((__real dc) != 3.14) abort();
    exit(0);
}
/* { dg-require-effective-target nested } */
