[Issue 10755] 'has no effect in expression' error for return too with comma operator
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Wed Feb 5 03:43:25 PST 2014
https://d.puremagic.com/issues/show_bug.cgi?id=10755
yebblies <yebblies at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |yebblies at gmail.com
--- Comment #1 from yebblies <yebblies at 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: -------
More information about the Digitalmars-d-bugs
mailing list