This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/11224] New: [regression] warning "value computed is not used" no longer emitted
- From: "mueller at kde dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 17 Jun 2003 17:56:05 -0000
- Subject: [Bug c++/11224] New: [regression] warning "value computed is not used" no longer emitted
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
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
Summary: [regression] warning "value computed is not used" no
longer emitted
Product: gcc
Version: unknown
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: c++
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: mueller@kde.org
CC: gcc-bugs@gcc.gnu.org
GCC build triplet: i486-suse-linux-gnu
GCC host triplet: i486-suse-linux-gnu
GCC target triplet: i486-suse-linux-gnu
Hi,
the attached testcase does no longer emit the "value computed is not
used" warning. The regression was introduced somewhere between 2.95.4 and
gcc 3.0.4, I'm currently trying to find the commit that broke it.
I compile with g++ -Wall -W -O2 -c unused.cc
expected output:
unused.cc: In function `int main()':
unused.cc:12: warning: value computed is not used
actual output: <nothing>