http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54745



             Bug #: 54745

           Summary: gcc/c/c-typeck.c: CASE_CONVERT possible coding bug ?

    Classification: Unclassified

           Product: gcc

           Version: 4.8.0

            Status: UNCONFIRMED

          Severity: normal

          Priority: P3

         Component: c

        AssignedTo: unassig...@gcc.gnu.org

        ReportedBy: dcb...@hotmail.com





[dcb@zippy trunk]$ fgrep CASE_CONVERT gcc/c/*.c

gcc/c/c-typeck.c:    CASE_CONVERT:

gcc/c/c-typeck.c:        CASE_CONVERT:



The two pieces of code are



    case REALPART_EXPR:

    case IMAGPART_EXPR:

    CASE_CONVERT:

    case ADDR_EXPR:



and



        CASE_CONVERT:

        case NON_LVALUE_EXPR:

        case PLUS_EXPR:



It is odd to define a label and then not use it, even more

so in the middle of a switch statement. Is it likely

that the programmer intended keyword "case" on the front

of CASE_CONVERT, like



    case CASE_CONVERT:

Reply via email to