[Issue 12153] New: Ternary operator on static array lvalues creates copy
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Thu Feb 13 11:40:00 PST 2014
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: nobody at puremagic.com
ReportedBy: thecybershadow at gmail.com
--- Comment #0 from Vladimir Panteleev <thecybershadow at gmail.com> 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: -------
More information about the Digitalmars-d-bugs
mailing list