D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 8069 - incorrect ambiguous virtual function error
Summary: incorrect ambiguous virtual function error
Status: RESOLVED FIXED
Alias: None
Product: D
Classification: Unclassified
Component: dmd (show other issues)
Version: D2
Hardware: x86_64 Linux
: P2 regression
Assignee: No Owner
URL:
Keywords: pull, rejects-valid
Depends on:
Blocks:
 
Reported: 2012-05-08 14:39 UTC by Fawzi Mohamed
Modified: 2015-06-09 05:11 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Fawzi Mohamed 2012-05-08 14:39:46 UTC
module t;

interface I{
  void f();
}
struct A{
  void f();
  final class B: I{
    A a;
    void f() {}
  }
}

produces
t.d(8): Error class t.A.B ambiguous virtual function error
with both Dmd 2.059 and 1.074
Comment 2 github-bugzilla 2012-05-10 11:16:48 UTC
Commits pushed to master at https://github.com/D-Programming-Language/dmd

https://github.com/D-Programming-Language/dmd/commit/bf20549ba21b031e9c3cc86c87090401833a1435
fix Issue 8069 - incorrect ambiguous virtual function error

https://github.com/D-Programming-Language/dmd/commit/f35c12ade4edda65a4407311e8f7fab3d6da3c28
Merge pull request #935 from 9rnsr/fix8069

Issue 8069 - incorrect ambiguous virtual function error