[Issue 20471] TypeInfo_Array incorrectly initialized
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Tue Jun 23 17:17:59 UTC 2020
https://issues.dlang.org/show_bug.cgi?id=20471
kinke <kinke at gmx.net> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |kinke at gmx.net
--- Comment #3 from kinke <kinke at gmx.net> ---
(In reply to Simen Kjaeraas from comment #2)
> The leaf node in the stack trace is object.TypeInfo_Array.toString()
I think that's a wrong lead due to a faulty stacktrace. The interesting bit is
> core.exception.RangeError at dmd\root\array.d(226): Range violation
That comes from an invalid index into a dmd.root.array.Array instance
(https://github.com/dlang/dmd/blob/v2.090.0/src/dmd/root/array.d#L226).
The next frame in the stacktrace seems reasonable, pointing to
https://github.com/dlang/dmd/blob/v2.090.0/src/dmd/dsymbolsem.d#L3655:
FuncDeclaration fdc = cd.vtbl[vi].isFuncDeclaration();
suggesting an invalid vi index.
--
More information about the Digitalmars-d-bugs
mailing list