This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/66602] std::tuple bug when constructed with temporary empty object


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66602

--- Comment #3 from so61pi.re at gmail dot com ---
My current version of GCC is 5.1.0 on Windows, but I also tested on Linux with
same GCC version, and it produced the same bug, which printed random value like
Daniel KrÃgler have showed.

Apparently, this bug is fixed in gcc HEAD 6.0.0 20150619 (experimental).


My command line was:

g++ -std=c++14 main.cpp -o main.exe


And here is the output of 'g++ -v' on my system:

Using built-in specs.
COLLECT_GCC=g++
COLLECT_LTO_WRAPPER=d:/tools/mingw/bin/../libexec/gcc/x86_64-w64-mingw32/5.1.0/l
to-wrapper.exe
Target: x86_64-w64-mingw32
Configured with: ../src/configure --with-gmp=/c/temp/gcc/gmp
--with-mpfr=/c/temp/gcc/mpfr --with-mpc=/c/temp/gcc/mpc
--enable-languages=c,c++ --build=x86_64-w64-mingw32 --host=x86_64-w64-mingw32
--target=x86_64-w64-mingw32 --disable-multilib --prefix=/c/temp/gcc/dest
--with-sysroot=/c/temp/gcc/dest --disable-libstdcxx-pch --disable-nls
--disable-shared --disable-win32-registry --enable-checking=release
--with-tune=haswell
Thread model: win32
gcc version 5.1.0 (GCC)

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]