Bug 8698 – Forward reference error with interfaces

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2012-09-19T17:44:00Z
Last change time
2015-06-17T21:03:24Z
Keywords
pull, rejects-valid
Assigned to
nobody
Creator
andrej.mitrovich

Comments

Comment #0 by andrej.mitrovich — 2012-09-19T17:44:31Z
version(Bug) {} else { interface IRoot { } } interface IClass : IRoot { } struct Struct { } class Class : IClass { alias Struct Value; } void test(Class.Value) { } version(Bug) { interface IRoot { } } else {} $ dmd -c test.d ok $ dmd -version=Bug -c test.d test.d(8): Error: interface test.IClass base IRoot is forward referenced This message is printed about 20 times. This is unrelated to Issue 8697 (the message is the same but they're different bugs), but it might be related to Issue 8415.
Comment #1 by k.hara.pg — 2013-04-06T09:32:31Z
Comment #2 by github-bugzilla — 2013-04-06T16:33:19Z
Commits pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/30b4252dff7d8bff734413dd8c521982b7cd0528 fix Issue 8698 - Forward reference error with interfaces https://github.com/D-Programming-Language/dmd/commit/d7770a099dfc9b6059a8be4693fc46c44af0f5ba Merge pull request #1853 from 9rnsr/fix8698 Issue 8698 - Forward reference error with interfaces
Comment #3 by github-bugzilla — 2015-03-30T06:10:37Z
Comment #4 by github-bugzilla — 2015-06-17T21:03:24Z