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
----