Bug 12802 – Allow optional 'StorageClasses' for new alias syntax

Status
RESOLVED
Resolution
FIXED
Severity
enhancement
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2014-05-26T06:36:00Z
Last change time
2017-07-02T15:39:09Z
Keywords
pull
Assigned to
nobody
Creator
k.hara.pg
Blocks
12615

Comments

Comment #0 by k.hara.pg — 2014-05-26T06:36:01Z
Old style alias declaration can have optional 'StorageClasses'. alias extern(C) ref pure nothrow int function() FP; pragma(msg, FP); // prints: extern (C) int function() pure nothrow ref But new alias syntax (introduced in enhancement issue 3011) does not support it. alias FP = extern(C) ref pure nothrow int function(); --- test.d(1): Error: basic type expected, not extern test.d(1): Error: semicolon expected to close alias declaration test.d(1): Error: no identifier for declarator extern (C) int function() The latter syntax should also be accepted and have same semantics with the former.
Comment #1 by k.hara.pg — 2014-05-26T06:51:35Z
Comment #2 by github-bugzilla — 2014-05-27T04:20:13Z
Commits pushed to master at https://github.com/D-Programming-Language/dlang.org https://github.com/D-Programming-Language/dlang.org/commit/97a706dcb59c9255309a2f6e3a9b14b258d35fd4 fix Issue 12802 - Allow optional 'StorageClasses' for new alias syntax 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
Comment #3 by github-bugzilla — 2014-05-27T05:04:41Z
Commits pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/700bdb7b61c0abc1c053dc436aa766b168e7f957 fix Issue 12802 - Allow optional 'StorageClasses' for new alias syntax https://github.com/D-Programming-Language/dmd/commit/884be6709b70105ff01a25f066b5b391bf48bde6 Merge pull request #3585 from 9rnsr/fix12802 Issue 12802 - Allow optional 'StorageClasses' for new alias syntax
Comment #4 by k.hara.pg — 2014-06-09T06:50:03Z
*** Issue 10471 has been marked as a duplicate of this issue. ***
Comment #5 by dlang-bugzilla — 2017-07-02T15:39:09Z
*** Issue 12055 has been marked as a duplicate of this issue. ***