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

2015-06-19 Thread so61pi.re at gmail dot com
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

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

2015-06-19 Thread so61pi.re at gmail dot com
Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: so61pi.re at gmail dot com Target Milestone: --- - #include #include class empty_t { }; int main() { // should print 1, but doesn't std::tuple a(empty_t{}, 1); std: