Bug 8697 – Invalid error message: Forward reference of interface
Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2012-09-19T16:51:00Z
Last change time
2013-04-06T17:16:42Z
Keywords
diagnostic, pull
Assigned to
nobody
Creator
andrej.mitrovich
Comments
Comment #0 by andrej.mitrovich — 2012-09-19T16:51:58Z
interface InterBase : InterRoot { }
class Base : InterBase { }
void test(Base.Invalid) { }
interface InterRoot { }
2.060: test.d(3): Error: interface test.InterBase base InterRoot is forward referenced
This message is printed about 20 times. In earlier versions it goes into an infinite loop. The real error message should be:
test.d(6): Error: no property 'Invalid' for type 'test.Base'
test.d(6): Error: Base.Invalid is used as a type
You can verify this by replacing "class Base : InterBase" with "class Base : InterRoot"