www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 16334] New: dmd producing invalid OMF file


          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: nobody puremagic.com
          Reporter: ketmar 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.
xreader.obj(xreader)  Offset 002B5H Record Type 009D
 Error 16: Index Range

Jul 29 2016