Bug 3035 – "cannot have const/invariant out parameter of type shared"

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
x86
OS
All
Creation time
2009-05-28T17:47:00Z
Last change time
2015-06-09T01:27:57Z
Keywords
patch, rejects-valid
Assigned to
bugzilla
Creator
rsinfu

Attachments

IDFilenameSummaryContent-TypeSize
385fix_sharedout.patchFix the problem (DMD 2.030)text/plain790

Comments

Comment #0 by rsinfu — 2009-05-28T17:47:24Z
Created attachment 385 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 by leandro.lucarella — 2009-10-29T06:49:35Z
Comment #2 by bugzilla — 2009-11-06T11:33:15Z
Fixed dmd 2.036