https://issues.dlang.org/show_bug.cgi?id=16334
Issue ID: 16334 Summary: dmd producing invalid OMF file Product: D Version: D2 Hardware: x86 OS: Windows Status: NEW Severity: major Priority: P1 Component: dmd Assignee: nob...@puremagic.com Reporter: ket...@ketmar.no-ip.org 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 --