www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 10628] New: [REG2.063] spurious deprecation warning

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

           Summary: [REG2.063] spurious deprecation warning
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Keywords: diagnostic, wrong-code
          Severity: regression
          Priority: P2
         Component: DMD
        AssignedTo: nobody puremagic.com
        ReportedBy: k.hara.pg gmail.com


--- Comment #0 from Kenji Hara <k.hara.pg gmail.com> 2013-07-13 05:32:04 PDT ---
From: http://d.puremagic.com/issues/show_bug.cgi?id=10577#c5

Reduced test case:

abstract class base
{
    static if (! __traits(isVirtualMethod, foo))
    {
    }

    private bool _bar;
    public void foo();
}

class derived: base   // line 44
{
    public override void foo() {}
}

void main()
{
    printf("vtbl = %d\n", typeid(derived).vtbl.length -
                          typeid(Object).vtbl.length);
    // With 2.062, prints "1"
    // With 2.063, prints "2"
}

Problematic deprecation message:
test.d(44): Deprecation: class test.derived use of test.base.foo() hidden by
derived is deprecated. Use 'alias base.foo foo;' to introduce base class
overload set.

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


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

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|[REG2.063] spurious         |[REG2.063] spurious "hidden
                   |deprecation warning         |by" deprecation warning


--- Comment #1 from Kenji Hara <k.hara.pg gmail.com> 2013-07-13 05:49:02 PDT ---
https://github.com/D-Programming-Language/dmd/pull/2344

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



--- Comment #2 from Kenji Hara <k.hara.pg gmail.com> 2013-07-19 04:52:28 PDT ---
Superseded compiler fix:
https://github.com/D-Programming-Language/dmd/pull/2362

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



--- Comment #3 from github-bugzilla puremagic.com 2013-07-20 17:24:03 PDT ---
Commit pushed to master at https://github.com/D-Programming-Language/dmd

https://github.com/D-Programming-Language/dmd/commit/8f916c8ac61ddd1d2bab5f241509e0555e409a14
fix Issue 10628 - spurious "hidden by" deprecation warning

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


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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED


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