D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 19277 - storage class used in alias statement has no effect
Summary: storage class used in alias statement has no effect
Status: RESOLVED FIXED
Alias: None
Product: D
Classification: Unclassified
Component: dmd (show other issues)
Version: D2
Hardware: All All
: P1 enhancement
Assignee: No Owner
URL:
Keywords: pull
Depends on:
Blocks:
 
Reported: 2018-09-30 18:50 UTC by Manu
Modified: 2020-07-04 02:32 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 Manu 2018-09-30 18:50:21 UTC
alias T = ref int;
void f(T not_a_ref_arg);

This is invalid, but it compiles and gives the user no indication that it's mal-formed...
Comment 1 Dlang Bot 2020-07-02 14:25:07 UTC
@thewilsonator updated dlang/dmd pull request #10018 "Fix Issue 19277 - storage class used in alias statement has no effect" fixing this issue:

- Fix Issue 19277 - storage class used in alias statement has no effect

https://github.com/dlang/dmd/pull/10018
Comment 2 Dlang Bot 2020-07-04 02:32:45 UTC
dlang/dmd pull request #10018 "Fix Issue 19277 - storage class used in alias statement has no effect" was merged into master:

- 629be0860a9c248ed120a23c2a984960c288a624 by Nicholas Lindsay Wilson:
  Fix Issue 19277 - storage class used in alias statement has no effect
  
  Co-authored-by: MoonlightSentinel <moonlightsentinel@disroot.org>

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