This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/34212] spurious warning: value computed is not used
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 13 Mar 2008 05:27:59 -0000
- Subject: [Bug middle-end/34212] spurious warning: value computed is not used
- References: <bug-34212-7667@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #10 from pinskia at gcc dot gnu dot org 2008-03-13 05:27 -------
+FAIL: g++.dg/warn/Wunused-9.C (test for warnings, line 32)
+f(); // { dg-warning "not used" }
+FAIL: g++.dg/warn/noeffect4.C (test for warnings, line 80)
const_cast<X &> (x.Foo ()); // { dg-warning "not used" }
I think the second one should not be warned about, but the first one I don't
know about. I am going to unassign this from me because of these regressions.
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|pinskia at gcc dot gnu dot |unassigned at gcc dot gnu
|org |dot org
Status|ASSIGNED |NEW
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34212