Bug 13521 – [D1] -di disables declaration shadowing message

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P1
Component
dmd
Product
D
Version
D1 (retired)
Platform
x86_64
OS
Linux
Creation time
2014-09-23T11:12:00Z
Last change time
2014-09-23T22:49:54Z
Keywords
industry
Assigned to
nobody
Creator
public

Comments

Comment #0 by public — 2014-09-23T11:12:05Z
Shadowing declarations is deprecated, and removed in D2. In D1, a deprecation error is issued by default, but when using -di to only print deprecations as warnings, the message is not emitted. void f() { int i; { int i; } } $ dmd1 -c shadow.d shadow.d(4): Deprecation: shadowing declaration shadow.f.i is deprecated $ dmd1 -c -di shadow.d
Comment #1 by bugzilla — 2014-09-23T22:49:30Z
Comment #2 by github-bugzilla — 2014-09-23T22:49:53Z
Commits pushed to dmd-1.x at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/595ba03fdb1018ed16710b65eaee416b4c456ca7 Fix issue 13521 : -di ignores variable shadowing https://issues.dlang.org/show_bug.cgi?id=13521 https://github.com/D-Programming-Language/dmd/commit/d82522fbd20894d2b23e23c2344a720c1513e805 Merge pull request #4019 from mihails-strasuns-sociomantic/di-shadowing-ignored [D1] fix issue 13521 : -di ignores variable shadowing