[Bug c++/42780] New: Incorrect warning message
piotr dot wyderski at gmail dot com
gcc-bugzilla@gcc.gnu.org
Sun Jan 17 20:20:00 GMT 2010
Uncomment the code of bit_vector::op_not (Attachment #19639)
and compile with
g++ -std=gnu++0x -O2 -m32 -march=native -msse -msse2 -msse3 -Wall
-Werror -Wno-unused -Wno-strict-aliasing -march=native
-fomit-frame-pointer -Wno-pmf-conversions -g main.cpp
an error message will appear:
main.cpp: In function 'long long int __vector__ dump(long long int
__vector__)':
main.cpp:653:1: error: control reaches end of non-void function
but the function dump() is not non-void:
void dump(__m128i v) { ...
--
Summary: Incorrect warning message
Product: gcc
Version: 4.5.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: piotr dot wyderski at gmail dot com
GCC host triplet: GCC-trunk(20100107)/Cygwin/WinXP32
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42780
More information about the Gcc-bugs
mailing list