[Bug c++/11224] [3.3/3.4 regression] warning "value computed is not used" no longer emitted
pinskia@physics.uc.edu
gcc-bugzilla@gcc.gnu.org
Tue Jun 17 18:12:00 GMT 2003
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11224
pinskia@physics.uc.edu changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed| |1
Last reconfirmed|0000-00-00 00:00:00 |2003-06-17 18:12:14
date| |
Summary|[regression] warning "value |[3.3/3.4 regression] warning
|computed is not used" no |"value computed is not used"
|longer emitted |no longer emitted
Target Milestone|3.4 |3.3.1
Version|unknown |3.0.4
------- Additional Comments From pinskia@physics.uc.edu 2003-06-17 18:12 -------
I can confirm this on the mainline (20030617), I think the problem is that isEmpty is not really
being marked const so gcc says that there could be some side-effects which is clearly not true.
from stmt.c:2430:
/* If this is an expression with side effects, don't warn. */
if (TREE_SIDE_EFFECTS (exp))
return 0;
More information about the Gcc-bugs
mailing list