$ g++-4.7 -std=c++0x -fpermissive t.C In file included from /usr/include/c++/4.7/x86_64-linux-gnu/bits/c++allocator.h:34:0, from /usr/include/c++/4.7/bits/allocator.h:48, from /usr/include/c++/4.7/deque:62, from t.C:1: /usr/include/c++/4.7/ext/new_allocator.h: In member function ‘void __gnu_cxx::new_allocator<_Tp>::construct(_Up*, _Args&& ...) [with _Up = int [2]; _Args = {int [2]}; _Tp = int [2]]’: /usr/include/c++/4.7/ext/new_allocator.h:109:9: error: non-trivial conversion at assignment int int[2] *D.12241 = *D.12830;
/usr/include/c++/4.7/ext/new_allocator.h:109: confused by earlier errors, bailing out Preprocessed source stored into /tmp/ccxiXwoh.out file, please attach this to your bugreport. g++-4.7 -v Using built-in specs. COLLECT_GCC=/usr/bin/g++-4.7.real COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/4.7/lto-wrapper Target: x86_64-linux-gnu Configured with: ../src/configure -v --with-pkgversion='Ubuntu/Linaro 4.7.1-2ubuntu1' --with-bugurl=file:///usr/share/doc/gcc-4.7/README.Bugs --enable-languages=c,c++,go,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-4.7 --enable-shared --enable-linker-build-id --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.7 --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --enable-gnu-unique-object --enable-plugin --enable-objc-gc --disable-werror --with-arch-32=i686 --with-tune=generic --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu Thread model: posix gcc version 4.7.1 (Ubuntu/Linaro 4.7.1-2ubuntu1) ** Attachment added: "produced by g++-4.7 -std=c++0x -fpermissive t.C" https://bugs.launchpad.net/ubuntu/+source/gcc-4.7/+bug/1019725/+attachment/3210048/+files/ccxiXwoh.out -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1019725 Title: tiny STL code sample segfaults cc1plus To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/gcc-4.6/+bug/1019725/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs