https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107764

            Bug ID: 107764
           Summary: -Wreturn-type and -Wuninitialized  documentation could
                    link to a FAQ about enum and switches
           Product: gcc
           Version: 13.0
            Status: UNCONFIRMED
          Keywords: documentation
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: pinskia at gcc dot gnu.org
  Target Milestone: ---

I have noticed GCC gets bug reports about false positive with -Wreturn-type or
-Wuninitialized and enums in a switch statement. WE should have a FAQ about
enums dealing with how they work; especially with switch statements and link to
that part of the document from those two warnings.

And also the FAQ should talk about the interaction with -fstrict-enum option
for C++.

https://gcc.gnu.org/legacy-ml/gcc/2007-01/msg01179.html

There are definitely some more bug reports that I didn't link in the see also.

Reply via email to