View mode: basic / threaded / horizontal-split · Log in · Help
October 17, 2006
[Issue 440] New: dmd.170 fails to mark final methods as implementations of abstract ones
http://d.puremagic.com/issues/show_bug.cgi?id=440

          Summary: dmd.170 fails to mark final methods as implementations
                   of abstract ones
          Product: D
          Version: 0.170
         Platform: PC
       OS/Version: Windows
           Status: NEW
         Keywords: rejects-valid
         Severity: major
         Priority: P2
        Component: DMD
       AssignedTo: bugzilla@digitalmars.com
       ReportedBy: h3r3tic@mat.uni.torun.pl


interface Foo {
       void foo();
}

class Bar : Foo {
       final void foo() {
       }
}

void main() {
       new Bar;
}


// final170.d(5): class final170.Bar interface function Foo.foo isn't
implemented


--
October 17, 2006
[Issue 440] dmd.170 fails to mark final methods as implementations of abstract ones
http://d.puremagic.com/issues/show_bug.cgi?id=440


benoit@tionex.de changed:

          What    |Removed                     |Added
----------------------------------------------------------------------------
          Priority|P2                          |P1




------- Comment #1 from benoit@tionex.de  2006-10-17 10:21 -------
I increased the priority of this bug, because it breaks existing code. 


--
October 17, 2006
[Issue 440] dmd.170 fails to mark final methods as implementations of abstract ones
http://d.puremagic.com/issues/show_bug.cgi?id=440


benoit@tionex.de changed:

          What    |Removed                     |Added
----------------------------------------------------------------------------
          Priority|P1                          |P2




------- Comment #2 from benoit@tionex.de  2006-10-17 10:26 -------
P2 was correct, sorry


--
October 21, 2006
Re: [Issue 440] New: dmd.170 fails to mark final methods as implementations of abstract ones
d-bugmail@puremagic.com schrieb am 2006-10-17:
> http://d.puremagic.com/issues/show_bug.cgi?id=440

> interface Foo {
>         void foo();
> }
>
> class Bar : Foo {
>         final void foo() {
>         }
> }
>
> void main() {
>         new Bar;
> }
>
>
> // final170.d(5): class final170.Bar interface function Foo.foo isn't
> implemented

Added to DStress as
http://dstress.kuehne.cn/run/f/final_12_A.d
http://dstress.kuehne.cn/run/f/final_12_B.d
http://dstress.kuehne.cn/nocompile/f/final_12_C.d

Thomas
November 22, 2006
[Issue 440] dmd.170 fails to mark final methods as implementations of abstract ones
http://d.puremagic.com/issues/show_bug.cgi?id=440


bugzilla@digitalmars.com changed:

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




------- Comment #4 from bugzilla@digitalmars.com  2006-11-21 23:05 -------
Works with DMD 0.174.


--
Top | Discussion index | About this forum | D home