This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/11957] New: wrong "warning: statement has no effect"
- From: "ritzert at t-online dot de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 17 Aug 2003 19:18:16 -0000
- Subject: [Bug c++/11957] New: wrong "warning: statement has no effect"
- 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=11957
Summary: wrong "warning: statement has no effect"
Product: gcc
Version: 3.4
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: ritzert at t-online dot de
CC: gcc-bugs at gcc dot gnu dot org
GCC build triplet: i686-pc-linux-gnu
GCC host triplet: i686-pc-linux-gnu
GCC target triplet: i686-pc-linux-gnu
# cat x.cpp
#include <string>
const std::string str[ 1 ] = { "a" };
const std::wstring wstr[ 1 ] = { L"a" };
# c++ -Wall -c x.cpp
x.cpp:3: warning: statement has no effect
x.cpp:4: warning: statement has no effect
Should be self-explanatory.