public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/59707] New: [4.8.2] Crash when using std::map with template class
@ 2014-01-06 23:43 martin.sandsmark at kde dot org
  2014-01-07  9:44 ` [Bug c++/59707] " redi at gcc dot gnu.org
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: martin.sandsmark at kde dot org @ 2014-01-06 23:43 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 59707
           Summary: [4.8.2] Crash when using std::map with template class
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: martin.sandsmark at kde dot org

Created attachment 31761
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=31761&action=edit
Crashing source

Using built-in specs.
COLLECT_GCC=/usr/bin/gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-unknown-linux-gnu/4.8.2/lto-wrapper
Target: x86_64-unknown-linux-gnu
Configured with: /build/gcc-multilib/src/gcc-4.8-20131219/configure
--prefix=/usr --libdir=/usr/lib --libexecdir=/usr/lib --mandir=/usr/share/man
--infodir=/usr/share/info --with-bugurl=https://bugs.archlinux.org/
--enable-languages=c,c++,ada,fortran,go,lto,objc,obj-c++ --enable-shared
--enable-threads=posix --with-system-zlib --enable-__cxa_atexit
--disable-libunwind-exceptions --enable-clocale=gnu --disable-libstdcxx-pch
--disable-libssp --enable-gnu-unique-object --enable-linker-build-id
--enable-cloog-backend=isl --disable-cloog-version-check --enable-lto
--enable-plugin --enable-install-libiberty --with-linker-hash-style=gnu
--enable-multilib --disable-werror --enable-checking=release
Thread model: posix


I'll just inline it here, just compile with "g++ filename.cpp" to crash:

#include <map>

struct T {
    template<class D> operator D*() const;
};

std::map<T, int> m;

void f(T x) {
    m[x];
}


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

end of thread, other threads:[~2014-08-01 18:50 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-01-06 23:43 [Bug c++/59707] New: [4.8.2] Crash when using std::map with template class martin.sandsmark at kde dot org
2014-01-07  9:44 ` [Bug c++/59707] " redi at gcc dot gnu.org
2014-01-07 10:21 ` [Bug c++/59707] [4.7/4.8/4.9 Regression] " jakub at gcc dot gnu.org
2014-01-29 22:08 ` jason at gcc dot gnu.org
2014-01-30  5:29 ` jason at gcc dot gnu.org
2014-06-12 13:41 ` [Bug c++/59707] [4.7/4.8 " rguenth at gcc dot gnu.org
2014-08-01 18:50 ` [Bug c++/59707] [4.8 " jason at gcc dot gnu.org

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).