[Issue 7669] New: Broken inout deduction with static array type
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Thu Mar 8 04:53:46 PST 2012
http://d.puremagic.com/issues/show_bug.cgi?id=7669
Summary: Broken inout deduction with static array type
Product: D
Version: D2
Platform: All
OS/Version: All
Status: NEW
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> 2012-03-08 04:53:49 PST ---
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
--
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