This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/53324] Crash when mixing _GLIBCXX_DEBUG and non-_GLIBCXX_DEBUG std::deque
- From: "redi at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 11 May 2012 17:09:26 +0000
- Subject: [Bug libstdc++/53324] Crash when mixing _GLIBCXX_DEBUG and non-_GLIBCXX_DEBUG std::deque
- Auto-submitted: auto-generated
- References: <bug-53324-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53324
--- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> 2012-05-11 17:09:26 UTC ---
Even if it wasn't assignable your program would crash, C++ name mangling
doesn't include the return type so the symbol _ZN2XX5getmeEv defined in x.o
reolves the undefined reference in y.o even though they disagree on the return
type.
I don't think it's possible to fix that, you just have to follow the
documentation and ensure you recompile all necessary code with -D_GLIBCXX_DEBUG