the following file fails to link:
alias afunc = void function ();
afunc func = () { func = cast(afunc)null; };
void main () {}
the error is:
OPTLINK (R) for Win32 Release 8.00.17
Copyright (C) Digital Mars 1989-2013 All rights reserved.
http://www.digitalmars.com/ctg/optlink.html
xreader.obj(xreader) Offset 002B5H Record Type 009D
Error 16: Index Range
Comment #1 by ketmar — 2016-07-29T13:12:39Z
it is major, 'cause it prevents some of my dynamic bindings from working on windows, and overall it is perfectly valid code (working on GNU/Linux) which is not working on windows. so i believe that it is major in terms of cross-platform support.
Comment #2 by bugzilla — 2017-10-24T21:45:52Z
This is dmd generating a corrupt object file (not an Optlink problem).