d: Fix internal compiler error: in add_expr, at tree.c:7794
authorIain Buclaw <ibuclaw@gdcproject.org>
Sat, 10 Aug 2019 14:11:49 +0000 (14:11 +0000)
committerIain Buclaw <ibuclaw@gcc.gnu.org>
Sat, 10 Aug 2019 14:11:49 +0000 (14:11 +0000)
commit884efbd523b7191edd7763ae8bba8afc96e3c238
treeed325cb3a0094824e1a0f426ec64e3ea7964608b
parent77eb117f588686e6fb018d103fc3d1899be9b008
d: Fix internal compiler error: in add_expr, at tree.c:7794

gcc/d/ChangeLog:

PR d/91238
* d-codegen.cc (build_address): If taking the address of a CALL_EXPR,
wrap it in a TARGET_EXPR.

gcc/testsuite/ChangeLog:

PR d/91238
* gdc.dg/pr91238.d: New test.

From-SVN: r274253
gcc/d/ChangeLog
gcc/d/d-codegen.cc
gcc/testsuite/ChangeLog
gcc/testsuite/gdc.dg/pr91238.d [new file with mode: 0644]