[Issue 6872] New: Breaking type parsing of shared(inout(int)[])
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Tue Nov 1 05:00:33 PDT 2011
http://d.puremagic.com/issues/show_bug.cgi?id=6872
Summary: Breaking type parsing of shared(inout(int)[])
Product: D
Version: D2
Platform: All
OS/Version: All
Status: NEW
Keywords: rejects-valid
Severity: normal
Priority: P2
Component: DMD
AssignedTo: nobody at puremagic.com
ReportedBy: k.hara.pg at gmail.com
--- Comment #0 from Kenji Hara <k.hara.pg at gmail.com> 2011-11-01 04:59:19 PDT ---
Code:
inout(int) func(shared(inout(int)[]) arr){ return 0; }
Output:
test.d(1): Error: inout on return means inout must be on a parameter as well
for inout(int)(shared(shared(const(int))[]) arr)
The shared(inout(int)[]) type is parsed as shared(shared(const(int))[]), it is
incorrect.
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list