d: Fix ICE in build_deref, at d/d-codegen.cc:1650 [PR111650]
commit4d4929fe0654d51b52a2bf6e6188d7aad0bf17ac
authorIain Buclaw <ibuclaw@gdcproject.org>
Fri, 19 Apr 2024 08:51:12 +0000 (19 10:51 +0200)
committerIain Buclaw <ibuclaw@gdcproject.org>
Fri, 19 Apr 2024 08:53:57 +0000 (19 10:53 +0200)
tree9a3e9a7b6df28130708cc5d3460c450357bd694f
parent9f295847a9c32081bdd0fe908ffba58e830a24fb
d: Fix ICE in build_deref, at d/d-codegen.cc:1650 [PR111650]

PR d/111650

gcc/d/ChangeLog:

* decl.cc (get_fndecl_arguments): Move generation of frame type to ...
(DeclVisitor::visit (FuncDeclaration *)): ... here, after the call to
build_closure.

gcc/testsuite/ChangeLog:

* gdc.dg/pr111650.d: New test.
gcc/d/decl.cc
gcc/testsuite/gdc.dg/pr111650.d [new file with mode: 0644]