Bug 11424 – Regression (2.064 git-head) typedef on structs isn't caught

Status
RESOLVED
Resolution
FIXED
Severity
regression
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2013-11-02T18:50:00Z
Last change time
2013-11-03T07:50:54Z
Keywords
accepts-invalid, pull
Assigned to
nobody
Creator
andrej.mitrovich

Comments

Comment #0 by andrej.mitrovich — 2013-11-02T18:50:54Z
----- typedef struct S { } void main() { } ----- $ dmd -w test.d > For comparison: ----- typedef int I; void main() { } ----- $ dmd -w test.d > test.d(1): Deprecation: use of typedef is deprecated; use alias instead
Comment #1 by andrej.mitrovich — 2013-11-02T18:52:06Z
Well.. it is a git-head regression, I can't reproduce it in 2.063.2.
Comment #2 by k.hara.pg — 2013-11-03T00:27:46Z
The regression has been caused by fixing bug 11145. https://github.com/D-Programming-Language/dmd/pull/2711
Comment #3 by github-bugzilla — 2013-11-03T07:19:46Z
Commits pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/2a2fa477d09d5c7416ad98cb5615235d4c519efc fix Issue 11424 - typedef on structs isn't caught It should be caught even if the typedef keyword usage is meaningless. https://github.com/D-Programming-Language/dmd/commit/05686c7184571fc931f8f79d859da219800d3e41 Merge pull request #2711 from 9rnsr/fix11424 [REG2.064a] Issue 11424 - typedef on structs isn't caught
Comment #4 by github-bugzilla — 2013-11-03T07:50:54Z
Commit pushed to 2.064 at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/7762f03709b8ceb0950f02d47cf4e703bdbabc6b Merge pull request #2711 from 9rnsr/fix11424 [REG2.064a] Issue 11424 - typedef on structs isn't caught