Bug 13310 – Old style multiple alias declaration not documented

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P1
Component
dlang.org
Product
D
Version
D2
Platform
All
OS
All
Creation time
2014-08-17T02:33:00Z
Last change time
2015-02-18T03:40:02Z
Keywords
pull, spec
Assigned to
nobody
Creator
briancschott
Blocks
10233

Comments

Comment #0 by briancschott — 2014-08-17T02:33:13Z
--- alias CHAR* LPCH, LPSTR, PCH, PSTR; --- AliasDeclaration: alias StorageClassesopt BasicType Declarator alias AliasDeclarationX ; AliasDeclarationX: Identifier TemplateParametersopt = StorageClassesopt Type AliasDeclarationX , Identifier TemplateParametersopt = StorageClassesopt Type Obviously AliasDeclarationX doesn't match because there's no "=" token, so let's try the first rule. This doesn't match because Declarator doesn't allow commas and multiple identifiers.
Comment #1 by briancschott — 2014-08-17T02:41:10Z
Looking at the D1 documentation, you can find this: AliasDeclaration: alias Decl Decl: BasicType Declarators ; Declarators: DeclaratorInitializer , DeclaratorIdentifierList DeclaratorInitializer: Declarator DeclaratorIdentifierList: DeclaratorIdentifier DeclaratorIdentifier , DeclaratorIdentifierList DeclaratorIdentifier: Identifier It appears that DMD is accepting code that is valid in D1 but not valid in D2 without issuing any sort of deprecation warning or compiler error.
Comment #2 by k.hara.pg — 2014-08-19T07:01:13Z
Comment #3 by k.hara.pg — 2014-08-19T16:24:28Z
Comment #4 by github-bugzilla — 2014-08-28T03:22:48Z
Commits pushed to master at https://github.com/D-Programming-Language/dlang.org https://github.com/D-Programming-Language/dlang.org/commit/94d4969b133c2134796dfd59984f2438a5eb9059 fix Issue 13310 - Old style multiple alias declaration not documented https://github.com/D-Programming-Language/dlang.org/commit/2998ebd1d055da70d19d10d23f8e05b168cfd6dd Merge pull request #634 from 9rnsr/fix_grammar Fix grammar issues 12810, 13310, 13329
Comment #5 by github-bugzilla — 2015-02-18T03:40:02Z