www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 11689] New: deprecated local function does not work

reply d-bugmail puremagic.com writes:
https://d.puremagic.com/issues/show_bug.cgi?id=11689

           Summary: deprecated local function does not work
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Keywords: rejects-valid
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody puremagic.com
        ReportedBy: k.hara.pg gmail.com


--- Comment #0 from Kenji Hara <k.hara.pg gmail.com> 2013-12-05 00:06:30 PST ---
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
----

-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Dec 05 2013
next sibling parent d-bugmail puremagic.com writes:
https://d.puremagic.com/issues/show_bug.cgi?id=11689


Kenji Hara <k.hara.pg gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |pull


--- Comment #1 from Kenji Hara <k.hara.pg gmail.com> 2013-12-05 00:11:54 PST ---
https://github.com/D-Programming-Language/dmd/pull/2926

-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Dec 05 2013
prev sibling next sibling parent d-bugmail puremagic.com writes:
https://d.puremagic.com/issues/show_bug.cgi?id=11689



--- Comment #2 from github-bugzilla puremagic.com 2013-12-05 06:09:20 PST ---
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

-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Dec 05 2013
prev sibling next sibling parent d-bugmail puremagic.com writes:
https://d.puremagic.com/issues/show_bug.cgi?id=11689


Kenji Hara <k.hara.pg gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED


-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Dec 05 2013
prev sibling parent d-bugmail puremagic.com writes:
https://d.puremagic.com/issues/show_bug.cgi?id=11689



--- Comment #3 from github-bugzilla puremagic.com 2013-12-19 04:25:19 PST ---
Commits pushed to 2.065 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

-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Dec 19 2013