Bug 11689 – deprecated local function does not work

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2013-12-05T00:06:00Z
Last change time
2015-06-17T21:03:46Z
Keywords
pull, rejects-valid
Assigned to
nobody
Creator
k.hara.pg

Comments

Comment #0 by k.hara.pg — 2013-12-05T00:06:30Z
This code is allowed by grammar, but compiler rejects it. void main() { deprecated void foo() {} } 'deprecated' should be parsed as a part of 'StorageClass'. ---- DeclarationStatement: Declaration <-- Declaration: AliasDeclaration AliasThisDeclaration Decl <-- Decl: StorageClasses Decl <-- BasicType Declarators ; BasicType Declarator FunctionBody AutoDeclaration StorageClasses: StorageClass <-- StorageClass StorageClasses StorageClass: abstract auto TypeCtor deprecated <-- enum extern final nothrow override pure __gshared Property scope static synchronized ----
Comment #1 by k.hara.pg — 2013-12-05T00:11:54Z
Comment #2 by github-bugzilla — 2013-12-05T06:09:20Z
Commits pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/b8d3eb189533a3b914143c7ef9fdb954cf775686 fix Issue 11689 - deprecated local function does not work https://github.com/D-Programming-Language/dmd/commit/c4d71efb3aeb69da6e0e3b0b8b37879f28a83e7f Merge pull request #2926 from 9rnsr/fix11689 Issue 11689 - deprecated local function does not work
Comment #3 by github-bugzilla — 2013-12-19T04:25:19Z
Comment #4 by github-bugzilla — 2015-03-29T07:39:18Z
Comment #5 by github-bugzilla — 2015-06-17T21:03:46Z