[Issue 12193] New: GIT HEAD: opOpAssign ignored if this aliases to bool value
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Tue Feb 18 08:30:09 PST 2014
https://d.puremagic.com/issues/show_bug.cgi?id=12193
Summary: GIT HEAD: opOpAssign ignored if this aliases to bool
value
Product: D
Version: D2
Platform: All
OS/Version: All
Status: NEW
Severity: regression
Priority: P2
Component: DMD
AssignedTo: nobody at puremagic.com
ReportedBy: puneet at coverify.org
--- Comment #0 from Puneet Goel <puneet at coverify.org> 2014-02-18 08:30:07 PST ---
Reduced testcase. Works with 2.064.
struct Foo {
bool bar;
alias bar this;
void opOpAssign(string op)(size_t x) {
bar = false;
}
}
void main() {
Foo foo;
foo <<= 1;
}
--
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