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.