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
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61528
Paolo Carlini changed:
What|Removed |Added
Status|UNCONFIRMED |RESOLVED
Resolution|---
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61528
Daniel Krügler changed:
What|Removed |Added
CC||daniel.kruegler@googlemail.
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
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 &
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61528
--- Comment #3 from Marc Glisse ---
The warning is discussed in PR 60517.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61528
--- Comment #2 from Lisp2D ---
Issue a warning would not hurt.
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.