www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 2553] New: Private interfaces cause a link error

reply d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=2553

           Summary: Private interfaces cause a link error
           Product: D
           Version: 2.021
          Platform: PC
        OS/Version: Windows
            Status: NEW
          Keywords: rejects-valid
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: bugzilla digitalmars.com
        ReportedBy: samukha voliacable.com


private interface IFoo
{
   void foo();
}

void main()
{
    IFoo foo;
    foo.foo;
}

Error 42: Symbol Undefined _D4Test4IFoo3fooMFZv


-- 
Jan 03 2009
next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=2553


coldinfluence789 yahoo.co.jp changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P2                          |P3
                 CC|                            |coldinfluence789 yahoo.co.j
                   |                            |p


-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Jun 26 2011
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=2553


yebblies <yebblies gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |patch
                 CC|                            |yebblies gmail.com
            Summary|Private interfaces cause a  |Excess attribute
                   |link error                  |propagation for interfaces


--- Comment #1 from yebblies <yebblies gmail.com> 2011-06-28 15:34:58 EST ---
The problem here is that private is getting applied to the members of IFoo, not
just the declaration.  This is related to bug 5110, which was fixed for structs
and classes, but not interfaces.

The fix is to only allow the same attribute propagation for interfaces that is
allowed for classes, and to set the default protection for interfaces to
public.

https://github.com/D-Programming-Language/dmd/pull/170

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Jun 27 2011
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=2553


coldinfluence789 yahoo.co.jp changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P3                          |P2


-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Jul 05 2011
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=2553


yebblies <yebblies gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
           Platform|x86                         |All
         Resolution|                            |FIXED
         OS/Version|Windows                     |All


--- Comment #2 from yebblies <yebblies gmail.com> 2011-10-19 21:00:33 EST ---
https://github.com/D-Programming-Language/dmd/commit/9621d716c9abb546f4ff86dd53ffb0956de36ff9

https://github.com/D-Programming-Language/dmd/commit/65e6dd16f0c70c49d5ff89fa23753b5977dd5502

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Oct 19 2011
prev sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=2553


yebblies <yebblies gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |benoit tionex.de


--- Comment #3 from yebblies <yebblies gmail.com> 2012-01-31 13:41:52 EST ---
*** Issue 1973 has been marked as a duplicate of this issue. ***

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