D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 11217 - Header generation does not output 'inout' storage class on parameters
Summary: Header generation does not output 'inout' storage class on parameters
Status: RESOLVED FIXED
Alias: None
Product: D
Classification: Unclassified
Component: dmd (show other issues)
Version: D2
Hardware: All All
: P2 normal
Assignee: No Owner
URL:
Keywords: pull, wrong-code
Depends on:
Blocks:
 
Reported: 2013-10-10 07:29 UTC by Kenji Hara
Modified: 2013-10-22 13:46 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Kenji Hara 2013-10-10 07:29:27 UTC
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'
    {
    }
}
Comment 2 github-bugzilla 2013-10-22 13:46:13 UTC
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