This is the mail archive of the mailing list for the GCC project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/11224] [3.3/3.4 regression] warning "value computed is not used" no longer emitted


           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  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;

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]