[Issue 11217] New: Header generation does not output 'inout' storage class on parameters

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Oct 10 07:29:29 PDT 2013


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 at puremagic.com
        ReportedBy: k.hara.pg at gmail.com


--- Comment #0 from Kenji Hara <k.hara.pg at 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: -------


More information about the Digitalmars-d-bugs mailing list