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"
Comment #1 by k.hara.pg — 2013-04-06T09:32:34Z
Comment #2 by github-bugzilla — 2013-04-06T16:33:14Z
Commit pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/f5fe61eac2cdbfe5976133ac9143f64cdda49c50 fix Issue 8697 - Invalid error message: Forward reference of interface