https://d.puremagic.com/issues/show_bug.cgi?id=12153
Summary: Ternary operator on static array lvalues creates copy
Product: D
Version: D2
Platform: All
OS/Version: All
Status: NEW
Keywords: wrong-code
Severity: normal
Priority: P2
Component: DMD
AssignedTo: [email protected]
ReportedBy: [email protected]
--- Comment #0 from Vladimir Panteleev <[email protected]> 2014-02-13
21:39:54 EET ---
void main()
{
int[1] i, j;
bool b = true;
(b ? i : j) = [4];
assert(i == [4]);
}
--
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------