public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/55028] New: _GLIBCXX_DEBUG is broken when using v7 namespace
@ 2012-10-22 21:00 oleg at smolsky dot net
  2012-10-22 21:05 ` [Bug c++/55028] " paolo.carlini at oracle dot com
                   ` (9 more replies)
  0 siblings, 10 replies; 11+ messages in thread
From: oleg at smolsky dot net @ 2012-10-22 21:00 UTC (permalink / raw)
  To: gcc-bugs


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

             Bug #: 55028
           Summary: _GLIBCXX_DEBUG is broken when using v7 namespace
    Classification: Unclassified
           Product: gcc
           Version: 4.7.2
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: oleg@smolsky.net


I've just hit an issue when using _GLIBCXX_DEBUG together with gcc 4.7.2 built
using --enable-symvers=gnu-versioned-namespace flag. The issue is specific to
unordered_mulimap and can be reproduced using the following:

struct MyType
{
};

#if 1
using MyMap = std::multimap<std::string, MyType *>;    // works
#else
using MyMap = std::unordered_multimap<std::string, MyType *>;  // fails to link
#endif

MyMap m;
m.insert({"blah"}, new MyType});

The latter variant fails to link with the following message:

misc/libmisc.a(statmgr.o): In function
`__gnu_debug::_Safe_unordered_container_base::~_Safe_unordered_container_base()':
statmgr.cc:(.text._ZN11__gnu_debug30_Safe_unordered_container_baseD2Ev[_ZN11__gnu_debug30_Safe_unordered_container_baseD5Ev]+0x15):
undefined reference to
`__gnu_debug::_Safe_unordered_container_base::_M_detach_all()'

The compiler was configured as follows:

Configured with: ../gcc-4.7.2/configure --prefix=/opt/gcc-4.7-v7
--enable-languages=c,c++,lto --with-mpfr=/opt/gcc-4.6-rbt
--with-cloog=/opt/gcc-4.6-rbt --with-mpc=/opt/gcc-4.6-rbt
--with-gmp=/opt/gcc-4.6-rbt --with-system-zlib --disable-multilib --enable-lto
--with-build-config=bootstrap-lto --with-fpmath=sse --enable-build-with-cxx
--enable-gold=yes --enable-cloog-backend=isl --disable-cloog-version-check
--enable-symvers=gnu-versioned-namespace CFLAGS=-O3 CXXFLAGS=-O3
Thread model: posix
gcc version 4.7.2 (GCC)


^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2012-11-06  0:20 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-10-22 21:00 [Bug c++/55028] New: _GLIBCXX_DEBUG is broken when using v7 namespace oleg at smolsky dot net
2012-10-22 21:05 ` [Bug c++/55028] " paolo.carlini at oracle dot com
2012-10-22 21:12 ` paolo.carlini at oracle dot com
2012-10-24 18:37 ` [Bug libstdc++/55028] " oleg at smolsky dot net
2012-10-30 15:10 ` oleg at smolsky dot net
2012-11-05 19:19 ` bkoz at gcc dot gnu.org
2012-11-05 21:01 ` bkoz at gcc dot gnu.org
2012-11-05 21:52 ` bkoz at gcc dot gnu.org
2012-11-05 21:53 ` bkoz at gcc dot gnu.org
2012-11-05 21:54 ` bkoz at gcc dot gnu.org
2012-11-06  0:20 ` paolo.carlini at oracle dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).