This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/38477] [strict-aliasing] warning message contains compiler-generated symbols
- From: "rguenth at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 13 Jan 2009 11:03:07 -0000
- Subject: [Bug libstdc++/38477] [strict-aliasing] warning message contains compiler-generated symbols
- References: <bug-38477-16067@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #15 from rguenth at gcc dot gnu dot org 2009-01-13 11:03 -------
Smaller testcase for the possible libstdc++ / C++ FE issue, build with
-O2 -finline-functions -Wstrict-aliasing -Wsystem-headers
#include <set>
class test
{
test();
void bar(int ci);
std::set<int> foo;
};
void test::bar(int ci )
{
test ctx;
ctx.foo.insert( ci );
}
/usr/include/c++/4.4/bits/stl_function.h: In member function ?void
test::bar(int)?:
/usr/include/c++/4.4/bits/stl_function.h:230: warning: dereferencing pointer
?__x.13? does break strict-aliasing rules
/usr/include/c++/4.4/bits/stl_tree.h:530: note: initialized from here
/usr/include/c++/4.4/bits/stl_function.h:230: warning: dereferencing pointer
?__x.13? does break strict-aliasing rules
/usr/include/c++/4.4/bits/stl_tree.h:530: note: initialized from here
I am now trying to investigate who is at fault.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38477