[Bug c++/61528] std::min std::max and RValue

2014-11-22 Thread glisse at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61528 --- Comment #8 from Marc Glisse --- If I mark f as static or inline (so the optimizer changes f to take its argument by value), I get with g++-5: w2.c: In function 'int main()': w2.c:11:7: warning: '' is used uninitialized in this function [-Wun

[Bug c++/61528] std::min std::max and RValue

2014-06-26 Thread paolo.carlini at oracle dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61528 Paolo Carlini changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|---

[Bug c++/61528] std::min std::max and RValue

2014-06-24 Thread daniel.kruegler at googlemail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61528 Daniel Krügler changed: What|Removed |Added CC||daniel.kruegler@googlemail.

[Bug c++/61528] std::min std::max and RValue

2014-06-16 Thread glisse at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61528 --- Comment #5 from Marc Glisse --- Feel free to post a message on https://groups.google.com/a/isocpp.org/forum/#!forum/std-proposals to suggest this. https://isocpp.org/std gives information on making official proposals. In gcc we only implement

[Bug c++/61528] std::min std::max and RValue

2014-06-16 Thread lisp2d at lisp2d dot net
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61528 --- Comment #4 from Lisp2D --- Likely error in the standard. The right set of functions must return a copy of the data and return a the temporary link with real data. Working version of it: size_t const & min2(size_t const & x,size_t const &

[Bug c++/61528] std::min std::max and RValue

2014-06-16 Thread glisse at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61528 --- Comment #3 from Marc Glisse --- The warning is discussed in PR 60517.

[Bug c++/61528] std::min std::max and RValue

2014-06-16 Thread lisp2d at lisp2d dot net
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61528 --- Comment #2 from Lisp2D --- Issue a warning would not hurt.

[Bug c++/61528] std::min std::max and RValue

2014-06-16 Thread glisse at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61528 --- Comment #1 from Marc Glisse --- Yes, that's required by the standard, nothing we can do about it.