Bug 13703 – "Error 16: Index Range" reported incorrectly on windows
Status
RESOLVED
Resolution
INVALID
Severity
blocker
Priority
P1
Component
tools
Product
D
Version
D2
Platform
x86
OS
Windows
Creation time
2014-11-09T15:56:00Z
Last change time
2017-07-01T14:02:06Z
Assigned to
nobody
Creator
nicolas.jinchereau
Comments
Comment #0 by nicolas.jinchereau — 2014-11-09T15:56:36Z
This project compiles fine on MacOSX.
On windows, I get the following error:
OPTLINK (R) for Win32 Release 8.00.15
Copyright (C) Digital Mars 1989-2013 All rights reserved.
http://www.digitalmars.com/ctg/optlink.html
obj\Debug\TestD.obj(TestD) Offset 1E6ADH Record Type 009D
Error 16: Index Range
--- errorlevel 1
I believe this is a bug in the linker.
The project(small) can be found here:
https://github.com/bitwise-github/D-Reflection/
Comment #1 by nicolas.jinchereau — 2014-11-09T15:59:19Z
Forgot the specs:
Xamarin Studio, DMD2, x86, on both sides
MacOSX Mavericks
Windows 8.1
Comment #2 by nicolas.jinchereau — 2014-11-22T03:55:54Z
After further testing, I found that commenting out all occurrences of the following line in 'reflection.d' of the cited project allows the code to compile:
// _parent = parent;
'parent' is passed from parent to child through a constructor while a hierarchy of objects is created at compile time.
Comment #3 by nicolas.jinchereau — 2014-11-27T01:09:52Z
Comment #4 by dlang-bugzilla — 2017-07-01T14:02:06Z
All links are dead, no test case, closing.
bitwise, if you are reading this and can still reproduce the bug, please create an archive with all source files and build script(s), attach it here, and reopen.