Bug 19076 – dmd 2.081 crashed by getVirtualFunctions for a interface extended interface
Status
RESOLVED
Resolution
FIXED
Severity
regression
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
x86
OS
Windows
Creation time
2018-07-11T11:32:16Z
Last change time
2020-03-21T03:56:31Z
Assigned to
No Owner
Creator
kntroh
Comments
Comment #0 by kntroh — 2018-07-11T11:32:16Z
dmd v2.081.0-1 / Windows 10(1803) x86_64
This code causes the compiler to crash.
dmd 2.080.1 hasn't this problem.
---
interface P { }
interface I : P { }
auto F = __traits(getVirtualFunctions, I, "V");
Comment #1 by b2.temp — 2018-07-11T11:41:05Z
Try with 2.081.1, released today. Looks that this bug is fixed.
Comment #2 by b2.temp — 2018-07-11T11:43:38Z
*** This issue has been marked as a duplicate of issue 19064 ***
Comment #3 by kntroh — 2018-07-11T11:46:37Z
(In reply to Basile B. from comment #1)
> Try with 2.081.1, released today. Looks that this bug is fixed.
I tried it now, but it still crashes.
---
PS[Desktop]$ .\dmd2\windows\bin\dmd.exe test.d
test.d(3): Error: no property V for type test.I
test.d(3): Error: (I).V cannot be resolved
---
ERROR: This is a compiler bug.
Please report it via https://issues.dlang.org/enter_bug.cgi
with, preferably, a reduced, reproducible example and the information below.
DustMite (https://github.com/CyberShadow/DustMite/wiki) can help with the reduction.
---
DMD v2.081.1
predefs DigitalMars Windows LittleEndian D_Version2 all D_InlineAsm D_InlineAsm_X86 X86 Win32 CRuntime_DigitalMars assert D_HardFloat
binary C:\Users\username\Desktop\dmd2\windows\bin\dmd.exe
version v2.081.1
config C:\Users\username\Desktop\dmd2\windows\bin\sc.ini
DFLAGS -IC:\Users\username\Desktop\dmd2\windows\bin\..\..\src\phobos -IC:\Users\username\Desktop\dmd2\windows\bin\..\..\src\druntime\import
---
object.Error@(0): Access Violation
----------------
0x0058E0D6
0x004CA346
0x00404D3A
0x0044090C
0x0067200B
0x0044404E
0x00485780
0x00466CBA
0x0052A70F
0x776D58A5 in LdrQueryProcessModuleInformation
0x776DD54B in RtlQueryProcessLockInformation
0x77685F72 in RtlRunOnceBeginInitialize
0x77676D35 in RtlAllocateHeap
0x7769A396 in ZwQueryInformationProcess
0x741AD2FF in GetSystemInfo
PS[Desktop]$
Comment #4 by razvan.nitu1305 — 2018-07-11T12:03:33Z
This is a different issue. I will soon make a PR
Comment #5 by b2.temp — 2018-07-11T12:09:30Z
sorry kntroh, i've been misleaded it was so similar.
Comment #6 by razvan.nitu1305 — 2018-07-11T12:35:37Z
(In reply to Basile B. from comment #5)
> sorry kntroh, i've been misleaded it was so similar.
It's nothing :).
Thanks for the quick fix!
Comment #8 by razvan.nitu1305 — 2018-07-12T07:52:08Z
(In reply to kntroh from comment #7)
> (In reply to Basile B. from comment #5)
> > sorry kntroh, i've been misleaded it was so similar.
> It's nothing :).
> Thanks for the quick fix!
Don't mention it!
Comment #9 by github-bugzilla — 2018-08-07T21:36:06Z