Bug 11396 – Function alias declaration not valid according to spec

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
dlang.org
Product
D
Version
D2
Platform
All
OS
All
Creation time
2013-10-30T20:52:00Z
Last change time
2014-05-27T04:20:14Z
Keywords
pull, spec
Assigned to
nobody
Creator
briancschott
Blocks
10233

Comments

Comment #0 by briancschott — 2013-10-30T20:52:33Z
The official language specification does not allow for the following declaration: alias extern(C) int function(int) foo; But this code is accepted by DMD.
Comment #1 by k.hara.pg — 2014-02-25T17:28:30Z
*** Issue 12257 has been marked as a duplicate of this issue. ***
Comment #2 by k.hara.pg — 2014-05-26T06:51:33Z
Comment #3 by github-bugzilla — 2014-05-27T04:20:11Z
Commits pushed to master at https://github.com/D-Programming-Language/dlang.org https://github.com/D-Programming-Language/dlang.org/commit/162c92c95874b4469c2fc8efc3e9e723c309935a fix Issue 11396 - Function alias declaration not valid according to spec https://github.com/D-Programming-Language/dlang.org/commit/b1fec9fdfc0e7fc82690e39097e4c5cecd02a3a7 Merge pull request #582 from 9rnsr/fix_aliasdecl Issue 11396 & 12802 - Allow optional 'StorageClasses' for old/new alias syntax