Bug 19132 – Attempting to override an alias crashes DMD

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2018-08-01T17:41:17Z
Last change time
2018-09-28T10:11:26Z
Keywords
ice
Assigned to
No Owner
Creator
Christian Wilson

Comments

Comment #0 by contact — 2018-08-01T17:41:17Z
Attempting to compile the following code results in an Access Violation with DMD 2.081.1: class Base { void test() { } alias hello = test; } class Derived : Base { override void hello() { } } Expected result: Error: function `app.Derived.hello` does not override any function. Special casing attempts to override an alias alternatively could produce an error along the lines of "function `app.Derived.hello` cannot override an alias." As a note, moving `alias hello = test` to Derived produces the expected result.
Comment #1 by razvan.nitu1305 — 2018-09-28T10:11:26Z