www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 8698] New: Forward reference error with interfaces

reply d-bugmail puremagic.com writes:
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



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: -------
Sep 19 2012
next sibling parent d-bugmail puremagic.com writes:
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



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: -------
Apr 06 2013
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=8698




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


Issue 8698 - Forward reference error with interfaces

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Apr 06 2013
prev sibling parent d-bugmail puremagic.com writes:
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: -------
Apr 06 2013