February 05, 2014 [Issue 10755] 'has no effect in expression' error for return too with comma operator | ||||
---|---|---|---|---|
| ||||
https://d.puremagic.com/issues/show_bug.cgi?id=10755 yebblies <yebblies@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |yebblies@gmail.com --- Comment #1 from yebblies <yebblies@gmail.com> 2014-02-05 22:43:16 EST --- There is some dead code in sideeffect.c that implements this: /* This isn't used yet because the only way an expression has an unused sub-expression * is with the CommaExp, and that currently generates messages from rewrites into comma * expressions. Needs more investigation. */ void Expression::useValue() { #if 0 // Disabled because need to cast(void) the a,b code generation void *p; apply(&lambdaUseValue, &p); #endif } #if 0 int lambdaUseValue(Expression *e, void *param) { switch (e->op) { case TOKcomma: { CommaExp *ce = (CommaExp *)e; discardValue(ce->E1); break; } default: break; } return 0; } #endif -- Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
February 05, 2014 [Issue 10755] 'has no effect in expression' error for return too with comma operator | ||||
---|---|---|---|---|
| ||||
https://d.puremagic.com/issues/show_bug.cgi?id=10755 --- Comment #2 from yebblies <yebblies@gmail.com> 2014-02-05 22:50:52 EST --- Pull request removing the dead code for now: https://github.com/D-Programming-Language/dmd/pull/3217 -- Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
Copyright © 1999-2021 by the D Language Foundation