Thread overview
[Issue 8698] New: Forward reference error with interfaces
Sep 20, 2012
Andrej Mitrovic
Apr 06, 2013
Kenji Hara
Apr 06, 2013
Walter Bright
September 20, 2012
http://d.puremagic.com/issues/show_bug.cgi?id=8698

           Summary: Forward reference error with interfaces
           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 17:44:31 PDT ---
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.

-- 
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=8698


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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |pull, rejects-valid


--- Comment #1 from Kenji Hara <k.hara.pg@gmail.com> 2013-04-06 09:32:31 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=8698



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

-- 
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=8698


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: -------