d: Fix ICE in get_frame_for_symbol
authorIain Buclaw <ibuclaw@gdcproject.org>
Sat, 9 Mar 2019 19:29:29 +0000 (19:29 +0000)
committerIain Buclaw <ibuclaw@gcc.gnu.org>
Sat, 9 Mar 2019 19:29:29 +0000 (19:29 +0000)
commit9fa5d5de369171b7149827fbc784aedb27eb6b84
tree062447e1859790cef12a54126fa7ba1bcecadd74
parent4ea60a393eee13a0a7715b7c8134e2115195c7f7
d: Fix ICE in get_frame_for_symbol

When generating code for a non-nested delegate literal, there is no
context pointer required to pass to the function.

2019-03-09  Iain Buclaw  <ibuclaw@gdcproject.org>

gcc/d/
PR d/89041
* d-codegen.cc (get_frame_for_symbol): Delegate literals defined in
global scope don't have a frame pointer.

gcc/testsuite/
PR d/89041
* gdc.dg/pr89041.d: New test.

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