Uploaded image for project: 'Embedded Software & Tools'
  1. Embedded Software & Tools
  2. EXT_EP-8716

Parser errors on empty enum declaration

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Medium Medium
    • Code Generation Tools
    • CODEGEN-4203
    • Hide
      ARM_18.1.0.LTS
      ARM_18.12.0.LTS
      ARM_20.2.0.LTS
      Show
      ARM_18.1.0.LTS ARM_18.12.0.LTS ARM_20.2.0.LTS
    • Hide
      The following code causes an error.

      enum : bool { };

      While both gcc and clang mark this with a warning, our compiler marks it as an error, due to the declaration being functionally useless and most likely unintentional.
      Show
      The following code causes an error. enum : bool { }; While both gcc and clang mark this with a warning, our compiler marks it as an error, due to the declaration being functionally useless and most likely unintentional.

      Parser errors on empty enum declaration

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

              Created:
              Updated: