Bug 16334 – dmd producing invalid OMF file

Status
RESOLVED
Resolution
WONTFIX
Severity
major
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
x86
OS
Windows
Creation time
2016-07-29T12:23:31Z
Last change time
2024-07-20T11:40:47Z
Assigned to
No Owner
Creator
Ketmar Dark

Comments

Comment #0 by ketmar — 2016-07-29T12:23:31Z
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).
Comment #3 by dkorpel — 2024-07-20T11:40:47Z
OMF support has been dropped.