[Bug c++/11957] New: wrong "warning: statement has no effect"
ritzert at t-online dot de
gcc-bugzilla@gcc.gnu.org
Sun Aug 17 19:18: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=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.
More information about the Gcc-bugs
mailing list