Bug 23745 – Segfault with forward reference mismatched override with undeclared type
Status
RESOLVED
Resolution
FIXED
Severity
regression
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2023-02-26T19:35:28Z
Last change time
2023-03-01T21:57:46Z
Keywords
pull
Assigned to
No Owner
Creator
Vladimir Panteleev
Comments
Comment #0 by dlang-bugzilla — 2023-02-26T19:35:28Z
////////// test.d //////////
class B : A
{
override void fun()
{
}
}
class A
{
void fun(UndefinedType);
}
////////////////////////////
Seems to have regressed in 2.080.0. Previously it correctly complained:
test.d(3): Error: function `test.B.fun` does not override any function, did you mean to override `test.A.fun`?
Comment #1 by dlang-bot — 2023-02-27T10:57:34Z
@RazvanN7 created dlang/dmd pull request #14922 "Fix Issue 23745 - Segfault with forward reference mismatched override with undeclared type" fixing this issue:
- Fix Issue 23745 - Segfault with forward reference mismatched override with undeclared type
https://github.com/dlang/dmd/pull/14922
Comment #2 by dlang-bot — 2023-02-27T14:48:41Z
dlang/dmd pull request #14922 "Fix Issue 23745 - Segfault with forward reference mismatched override with undeclared type" was merged into stable:
- 6558117012a9916353a9172ff99b4d2d395d1539 by RazvanN7:
Fix Issue 23745 - Segfault with forward reference mismatched override with undeclared type
https://github.com/dlang/dmd/pull/14922
Comment #3 by dlang-bot — 2023-03-01T21:57:46Z
dlang/dmd pull request #14938 "merge stable" was merged into master:
- 76a1dcaf1ad2fab56efeb49b2717d0571f025510 by RazvanN7:
Fix Issue 23745 - Segfault with forward reference mismatched override with undeclared type
https://github.com/dlang/dmd/pull/14938