www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 11217] New: Header generation does not output 'inout' storage class on parameters

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

           Summary: Header generation does not output 'inout' storage
                    class on parameters
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Keywords: wrong-code
          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-10-10 07:29:27 PDT ---
Test case:

void foo()(    const int[] arr) {}  ///
void foo()(immutable int[] arr) {}  ///
void foo()(      ref int[] arr) {}  ///
void foo()(     lazy int[] arr) {}  ///
void foo()( auto ref int[] arr) {}  ///
void foo()(    scope int[] arr) {}  ///
void foo()(       in int[] arr) {}  ///
void foo()(    inout int[] arr) {}  ///

For the last 'foo', compiler outputs following declaration in di file:

template foo()
{
    void foo(int[] arr)   // missing 'inout'
    {
    }
}

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Oct 10 2013
next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=11217


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

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


--- Comment #1 from Kenji Hara <k.hara.pg gmail.com> 2013-10-10 07:35:40 PDT ---
https://github.com/D-Programming-Language/dmd/pull/2648

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Oct 10 2013
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=11217



--- Comment #2 from github-bugzilla puremagic.com 2013-10-22 13:46:13 PDT ---
Commits pushed to master at https://github.com/D-Programming-Language/dmd

https://github.com/D-Programming-Language/dmd/commit/e9c4e41bb8fa5e63a5b294aa028317b66abee611
fix Issue 11217 - Header generation does not output 'inout' storage class on
parameters

https://github.com/D-Programming-Language/dmd/commit/81fd5b3afef42a9ebb48d5efaf4a084eb5c5c825
Merge pull request #2648 from 9rnsr/fix11217

Issue 11217 - Header generation does not output 'inout' storage class on
parameters

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Oct 22 2013
prev sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=11217


Andrej Mitrovic <andrej.mitrovich gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |andrej.mitrovich gmail.com
         Resolution|                            |FIXED


-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Oct 22 2013