D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 22914 - outdated supplemental error "perhaps remove scope"
Summary: outdated supplemental error "perhaps remove scope"
Status: RESOLVED FIXED
Alias: None
Product: D
Classification: Unclassified
Component: dmd (show other issues)
Version: D2
Hardware: All All
: P1 normal
Assignee: No Owner
URL:
Keywords: pull
Depends on:
Blocks:
 
Reported: 2022-03-23 13:57 UTC by Dennis
Modified: 2022-03-23 20:12 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Dennis 2022-03-23 13:57:29 UTC
```
@safe:
struct S
{
    int  val;
    int* ptr;
    int* retScope() return scope
    {
        return &this.val;
    }
}
```

The error "perhaps remove `scope` parameter annotation so `return` applies to `ref`" refers to the old dip1000 design, which has been superseded.
Comment 1 Dlang Bot 2022-03-23 13:59:08 UTC
@dkorpel created dlang/dmd pull request #13875 "Fix issue 22914 - outdated supplemental error "perhaps remove scope"" fixing this issue:

- Fix issue 22914 - outdated supplemental error "perhaps remove scope"

https://github.com/dlang/dmd/pull/13875
Comment 2 Dlang Bot 2022-03-23 20:12:15 UTC
dlang/dmd pull request #13875 "Fix issue 22914 - outdated supplemental error "perhaps remove scope"" was merged into master:

- 5e00be6960ca9d09c380d78951fa040320cb7752 by Dennis Korpel:
  Fix issue 22914 - outdated supplemental error "perhaps remove scope"

https://github.com/dlang/dmd/pull/13875