1

using std::map gives warning: dereferencing pointer ‘<anonymous>’ does break strict-aliasing rules

view story
linux-howto

http://stackoverflow.com – I've reduced a case to the code shown below here. When compiling, this gives the following: $ g++ -std=c++0x -O2 -Wall t.cpp t.cpp: In function ‘int main()’: t.cpp:20: warning: dereferencing pointer ‘<anonymous>’ does break strict-aliasing rules t.cpp:19: warning: dereferencing pointer ‘<anonymous>’ does break strict-aliasing rules /usr/lib/gcc/i686-redhat-linux/4.4.6/../../../../include/c++/4.4.6/bits/stl_tree.h:175: note: initialized from here What is this warning telling me ? What can I do about it ? #include <stdio.h> #include <stdint.h> struct Time (HowTos)