Fix ICE when handling void initialized manifest constants.
authorIain Buclaw <ibuclaw@gdcproject.org>
Sat, 26 Jan 2019 21:07:15 +0000 (21:07 +0000)
committerIain Buclaw <ibuclaw@gcc.gnu.org>
Sat, 26 Jan 2019 21:07:15 +0000 (21:07 +0000)
commite4e13e261060dde55de4f7135fe09a816a51f929
tree654e8d21aa880ad2e9e2a90e6f88b811d0a39c67
parent3a55c8e248e82f0d64ed8acb85183fefe53cfc0a
Fix ICE when handling void initialized manifest constants.

gcc/d/ChangeLog:

2019-01-26  Iain Buclaw  <ibuclaw@gdcproject.org>

PR d/89042
* decl.cc (DeclVisitor::visit(VarDeclaration)): Don't assert if
handling a void initialized manifest constant.

gcc/testsuite/ChangeLog:

2019-01-26  Iain Buclaw  <ibuclaw@gdcproject.org>

PR d/89042
* gdc.dg/pr89042a.d: New test.
* gdc.dg/pr89042b.d: New test.

From-SVN: r268304
gcc/d/ChangeLog
gcc/d/decl.cc
gcc/testsuite/ChangeLog
gcc/testsuite/gdc.dg/pr89042a.d [new file with mode: 0644]
gcc/testsuite/gdc.dg/pr89042b.d [new file with mode: 0644]