https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89041

--- Comment #1 from ibuclaw at gcc dot gnu.org ---
Author: ibuclaw
Date: Sat Mar  9 19:29:29 2019
New Revision: 269533

URL: https://gcc.gnu.org/viewcvs?rev=269533&root=gcc&view=rev
Log:
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  <ibuc...@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.

Added:
    trunk/gcc/testsuite/gdc.dg/pr89041.d
Modified:
    trunk/gcc/d/ChangeLog
    trunk/gcc/d/d-codegen.cc
    trunk/gcc/testsuite/ChangeLog

Reply via email to