Enum given unsigned type, but documentation suggests signed type

XMLWordPrintable

    • Type: Bug
    • Resolution: Won't Fix
    • Priority: Low
    • Code Generation Tools
    • CODEGEN-3740
    • Hide
      C6000_8.3.0
      C6000_8.2.1
      Show
      C6000_8.3.0 C6000_8.2.1
    • N/A
    • The parser may, contrary to the documentation, give some enums an unsigned type.
    • Compiler is behaving correctly for this particular test case. The documentation is wrong for this particular test case. See the comments for more details.

      Whether an enumerated type has an underlying integer type that is signed or unsigned is not well documented in the compiler manual, and is fairly complicated. In fact, the documentation is wrong for this test case. Given an enumerated type with all non-negative values that fit in "signed int," the compiler will pick "unsigned int" for the underlying type, which is common practice in the industry. The documentation claims that the type chosen will be "signed int." We will be carefully examining enumerated types and the documentation for enumerated types for future releases.

            Assignee:
            TI User
            Reporter:
            TI User
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:

                Connection: Intermediate to External PROD System
                EXTSYNC-956 - Enum given unsigned type, but docum...
                SYNCHRONIZED
                • Last Sync Date: