------- Comment #7 from veksler at il dot ibm dot com  2010-04-08 19:29 -------
Created an attachment (id=20340)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=20340&action=view)
testcase: A simple set<int>::iterator wrapper produces the same warning

This c++ file gives a similar warning when compiled with -O2 -Wall
=>  g++ -Wall -O2 t.cpp
t.cpp: In function 'int main()':
t.cpp:15: warning: dereferencing pointer '<anonymous>' does break
strict-aliasing rules
/usr/lib/gcc/x86_64-redhat-linux/4.4.3/../../../../include/c++/4.4.3/bits/stl_tree.h:250:
note: initialized from here
t.cpp:15: warning: dereferencing pointer '<anonymous>' does break
strict-aliasing rules
/usr/lib/gcc/x86_64-redhat-linux/4.4.3/../../../../include/c++/4.4.3/bits/stl_tree.h:250:
note: initialized from here


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43624

Reply via email to