wilzbach / tools-test

1 stars 0 forks source link

"Error 16: Index Range" reported incorrectly on windows #117

Closed wilzbach closed 7 years ago

wilzbach commented 9 years ago

Note: the issue was created automatically migrated from https://issues.dlang.org

Original bug ID: BZ#13703 From: bitwise <nicolas.jinchereau@gmail.com> Reported version: D2 CC: dlang-bugzilla@thecybershadow.net

wilzbach commented 9 years ago

Comment author: bitwise <nicolas.jinchereau@gmail.com>

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/

wilzbach commented 9 years ago

Comment author: bitwise <nicolas.jinchereau@gmail.com>

Forgot the specs:

Xamarin Studio, DMD2, x86, on both sides

MacOSX Mavericks Windows 8.1

wilzbach commented 9 years ago

Comment author: bitwise <nicolas.jinchereau@gmail.com>

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.

wilzbach commented 9 years ago

Comment author: bitwise <nicolas.jinchereau@gmail.com>

code was updated with workarounds, and the bug is gone.

The last broken commit: https://github.com/bitwise-github/D-Reflection/tree/593993af078d3b3758909cb070c98d0aaf9440bd

wilzbach commented 7 years ago

Comment author: Vladimir Panteleev <dlang-bugzilla@thecybershadow.net>

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.