Thread overview
[Issue 10768] New: DMD does not show deprecation message for missing 'override' keyword
Aug 07, 2013
Kenji Hara
Aug 07, 2013
Kenji Hara
Aug 28, 2013
Walter Bright
August 07, 2013
http://d.puremagic.com/issues/show_bug.cgi?id=10768

           Summary: DMD does not show deprecation message for missing
                    'override' keyword
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Keywords: diagnostic
          Severity: normal
          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-08-06 21:33:32 PDT ---
This is a spin-off issue from: http://d.puremagic.com/issues/show_bug.cgi?id=10727#c3

----

DMD does not crib about
missing override for function Foo.frop. But starts doing that if "alias toArray
this" in CirBuff(T) is commented out.

struct CirBuff(T) {
  import std.traits: isArray;
  CirBuff!T opAssign(R)(R ) if(isArray!R) { }

  T[] toArray() {
    T[] ret; //  = new T[this.length];
    return ret;
  }
  alias toArray this;
}

class Bar (T=int){
  CirBuff!T _bar;
}

class Once {
  Bar!Foo _foobar;
}

class Foo: Frop {
  // override
  public int frop() {return 1;}
}

class Frop {
  public int frop() {return 0;}
}

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


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

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


--- Comment #1 from Kenji Hara <k.hara.pg@gmail.com> 2013-08-06 21:57:16 PDT ---
https://github.com/D-Programming-Language/dmd/pull/2453

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



--- Comment #2 from github-bugzilla@puremagic.com 2013-08-28 14:34:39 PDT ---
Commits pushed to master at https://github.com/D-Programming-Language/dmd

https://github.com/D-Programming-Language/dmd/commit/8221f864ff23aa9ff92b9edb8f73ced08cbe6506
fix Issue 10768 - DMD does not show deprecation message for missing 'override'
keyword

If a class/struct/template is not speculatively instantiated, error gagging
should be ungagged temporarily during its semantic.
Use RAII idiom to do it reliably.

https://github.com/D-Programming-Language/dmd/commit/3088fa094d1d7834b5e1a9285a4b076013341150 Merge pull request #2453 from 9rnsr/fix10768

Issue 10768 - DMD does not show deprecation message for missing 'override' keyword

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


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