Thread overview
[Issue 8697] New: Invalid error message: Forward reference of interface
Sep 19, 2012
Andrej Mitrovic
Apr 06, 2013
Kenji Hara
Apr 07, 2013
Walter Bright
September 19, 2012
http://d.puremagic.com/issues/show_bug.cgi?id=8697

           Summary: Invalid error message: Forward reference of interface
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody@puremagic.com
        ReportedBy: andrej.mitrovich@gmail.com


--- Comment #0 from Andrej Mitrovic <andrej.mitrovich@gmail.com> 2012-09-19 16:51:58 PDT ---
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"

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
April 06, 2013
http://d.puremagic.com/issues/show_bug.cgi?id=8697


Kenji Hara <k.hara.pg@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |pull


--- Comment #1 from Kenji Hara <k.hara.pg@gmail.com> 2013-04-06 09:32:34 PDT ---
https://github.com/D-Programming-Language/dmd/pull/1853

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
April 06, 2013
http://d.puremagic.com/issues/show_bug.cgi?id=8697



--- Comment #2 from github-bugzilla@puremagic.com 2013-04-06 16:33:14 PDT ---
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

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
April 07, 2013
http://d.puremagic.com/issues/show_bug.cgi?id=8697


Walter Bright <bugzilla@digitalmars.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |bugzilla@digitalmars.com
         Resolution|                            |FIXED


-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------