[Bug c/87950] GCC warns about reaching end of non-void function when all switch cases are completely handled

2024-01-06 Thread arsen at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87950 Arsen Arsenović changed: What|Removed |Added CC||arsen at gcc dot gnu.org --- Comment

[Bug c/87950] GCC warns about reaching end of non-void function when all switch cases are completely handled

2019-03-12 Thread egallager at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87950 Eric Gallager changed: What|Removed |Added See Also||https://gcc.gnu.org/bugzill

[Bug c/87950] GCC warns about reaching end of non-void function when all switch cases are completely handled

2018-12-11 Thread jason at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87950 Jason Merrill changed: What|Removed |Added CC||jason at gcc dot gnu.org --- Comment

[Bug c/87950] GCC warns about reaching end of non-void function when all switch cases are completely handled

2018-12-10 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87950 --- Comment #13 from Martin Sebor --- *** Bug 87951 has been marked as a duplicate of this bug. ***

[Bug c/87950] GCC warns about reaching end of non-void function when all switch cases are completely handled

2018-11-09 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87950 Martin Sebor changed: What|Removed |Added Keywords||missed-optimization

[Bug c/87950] GCC warns about reaching end of non-void function when all switch cases are completely handled

2018-11-09 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87950 Richard Biener changed: What|Removed |Added Keywords||diagnostic

[Bug c/87950] GCC warns about reaching end of non-void function when all switch cases are completely handled

2018-11-09 Thread marxin at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87950 --- Comment #10 from Martin Liška --- (In reply to Andrew Pinski from comment #9) > (In reply to Martin Liška from comment #8) > > Thank you Andrew for clarification of the behavior. Apparently it's quite > > common question. One note that I

[Bug c/87950] GCC warns about reaching end of non-void function when all switch cases are completely handled

2018-11-09 Thread pinskia at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87950 --- Comment #9 from Andrew Pinski --- (In reply to Martin Liška from comment #8) > Thank you Andrew for clarification of the behavior. Apparently it's quite > common question. One note that I have about C behavior is that we can maybe > also add

[Bug c/87950] GCC warns about reaching end of non-void function when all switch cases are completely handled

2018-11-09 Thread marxin at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87950 Martin Liška changed: What|Removed |Added CC||marxin at gcc dot gnu.org --- Comment #8

[Bug c/87950] GCC warns about reaching end of non-void function when all switch cases are completely handled

2018-11-08 Thread pinskia at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87950 --- Comment #7 from Andrew Pinski --- (In reply to Vitali from comment #6) > Actually as of C++17 it's undefined behaviour. > > http://www.open-std.org/jtc1/sc22/wg21/docs/cwg_defects.html#1766 > > so at the very least when compiled with C++17

[Bug c/87950] GCC warns about reaching end of non-void function when all switch cases are completely handled

2018-11-08 Thread vlovich at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87950 Vitali changed: What|Removed |Added Status|RESOLVED|UNCONFIRMED Resolution|INVALID

[Bug c/87950] GCC warns about reaching end of non-void function when all switch cases are completely handled

2018-11-08 Thread pinskia at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87950 Andrew Pinski changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|---

[Bug c/87950] GCC warns about reaching end of non-void function when all switch cases are completely handled

2018-11-08 Thread pinskia at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87950 Andrew Pinski changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|---

[Bug c/87950] GCC warns about reaching end of non-void function when all switch cases are completely handled

2018-11-08 Thread vlovich at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87950 Vitali changed: What|Removed |Added Status|RESOLVED|UNCONFIRMED Resolution|INVALID

[Bug c/87950] GCC warns about reaching end of non-void function when all switch cases are completely handled

2018-11-08 Thread vlovich at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87950 --- Comment #2 from Vitali --- Why has clang made a different decision? Also, this warning is present in C++ code too.

[Bug c/87950] GCC warns about reaching end of non-void function when all switch cases are completely handled

2018-11-08 Thread pinskia at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87950 Andrew Pinski changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|---