D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 14589 - Wrongly signalling deprecation
Summary: Wrongly signalling deprecation
Status: RESOLVED DUPLICATE of issue 14343
Alias: None
Product: D
Classification: Unclassified
Component: dmd (show other issues)
Version: D2
Hardware: x86_64 Windows
: P1 normal
Assignee: No Owner
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-05-15 17:59 UTC by Manfred Nowak
Modified: 2015-05-16 18:46 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Manfred Nowak 2015-05-15 17:59:14 UTC
class C{
  auto opUnary( string op)() {
    return this;
  }
}

class D:C{
  auto opUnary( string op)(){
    return super--;
  }
}
void main(){
  auto var= new D;
  var--;
}
Comment 1 Vladimir Panteleev 2015-05-16 18:46:55 UTC
Compiles fine with git HEAD.

In 2.066.1, this code did not compile with an error. The error was turned into a deprecation by https://github.com/D-Programming-Language/dmd/pull/4463. The deprecation was fixed by https://github.com/D-Programming-Language/dmd/pull/4522.

This looks like a duplicate of Issue 14343.

*** This issue has been marked as a duplicate of issue 14343 ***