Bug 7669 – Broken inout deduction with static array type

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2012-03-08T04:53:00Z
Last change time
2012-03-11T15:14:52Z
Keywords
pull, rejects-valid
Assigned to
nobody
Creator
k.hara.pg

Comments

Comment #0 by k.hara.pg — 2012-03-08T04:53:49Z
test case: -------- shared(inout U)[n] id(U, size_t n)( shared(inout U)[n] ); void main() { static assert(is(typeof( id((shared(int)[3]).init)) == shared(int)[3])); } output: -------- test.d(4): Error: static assert (is(shared(inout(int)[3u]) == shared(int[3u]))) is false
Comment #1 by k.hara.pg — 2012-03-11T06:59:01Z