The following lusting generates a OPTLINK error. void[0] Dummy1; void f(ref void[0] x) { } void main() { f(Dummy1); static void[0] Dummy2; f(Dummy2); } It does not occur when a local void[0] is passed to f or the parameter is not ref. For Dummy1 it does not matter wether it is static or not.
This produces the error: OPTLINK (R) for Win32 Release 8.00.17 Copyright (C) Digital Mars 1989-2013 All rights reserved. http://www.digitalmars.com/ctg/optlink.html bug4.obj(bug4) Offset 0026DH Record Type 009D Error 16: Index Range Error: linker exited with status 1 which looks like a corrupt object file being passed to it.
*** This issue has been marked as a duplicate of issue 16129 ***