[Bug c++/107764] -Wreturn-type and -Wuninitialized documentation could link to a FAQ about enum and switches

2022-11-22 Thread marxin at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107764 --- Comment #5 from Martin Liška --- Or it can be even includeded in https://gcc.gnu.org/onlinedocs/gcc/C_002b_002b-Misunderstandings.html#C_002b_002b-Misunderstandings (or next to -Wreturn-type and -Wuninitialized). Well, our documentation

[Bug c++/107764] -Wreturn-type and -Wuninitialized documentation could link to a FAQ about enum and switches

2022-11-21 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107764 --- Comment #4 from Jonathan Wakely --- It could be moved to https://gcc.gnu.org/bugs/#nonbugs_cxx though, if we want to link to it from diagnostics.

[Bug c++/107764] -Wreturn-type and -Wuninitialized documentation could link to a FAQ about enum and switches

2022-11-21 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107764 --- Comment #3 from Jonathan Wakely --- We do have a FAQ, I wrote one: https://gcc.gnu.org/wiki/VerboseDiagnostics#enum_switch

[Bug c++/107764] -Wreturn-type and -Wuninitialized documentation could link to a FAQ about enum and switches

2022-11-20 Thread egallager at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107764 Eric Gallager changed: What|Removed |Added Last reconfirmed||2022-11-21 CC|

[Bug c++/107764] -Wreturn-type and -Wuninitialized documentation could link to a FAQ about enum and switches

2022-11-19 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107764 --- Comment #1 from Andrew Pinski --- It also does not help that clang and GCC disagree on how the C++ enums work either.