D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 3035 - "cannot have const/invariant out parameter of type shared"
Summary: "cannot have const/invariant out parameter of type shared"
Status: RESOLVED FIXED
Alias: None
Product: D
Classification: Unclassified
Component: dmd (show other issues)
Version: D2
Hardware: x86 All
: P2 normal
Assignee: Walter Bright
URL:
Keywords: patch, rejects-valid
Depends on:
Blocks:
 
Reported: 2009-05-28 17:47 UTC by Shin Fujishiro
Modified: 2015-06-09 01:27 UTC (History)
1 user (show)

See Also:


Attachments
Fix the problem (DMD 2.030) (790 bytes, patch)
2009-05-28 17:47 UTC, Shin Fujishiro
Details | Diff

Note You need to log in before you can comment on or make changes to this issue.
Description Shin Fujishiro 2009-05-28 17:47:24 UTC
Created attachment 385 [details]
Fix the problem (DMD 2.030)

DMD 2.030 rejects this valid code:
--------------------
void foo(out shared int o) {}
--------------------
test.d(1): Error: cannot have const/invariant out parameter of type shared(int)
--------------------
Comment 1 Leandro Lucarella 2009-10-29 06:49:35 UTC
Related SVN revision: http://www.dsource.org/projects/dmd/changeset/222
Comment 2 Walter Bright 2009-11-06 11:33:15 UTC
Fixed dmd 2.036