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

armcl fails to flag an inconsistent use of alignas between a declaration and definition of an object

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Medium Medium
    • Code Generation Tools
    • CODEGEN-4228
    • 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

      The TI Arm compiler does not generate an error when it should:

      template <class> struct alignas(char) S;
      template <class> struct S {};

      The test asserts that an alignment specifier must be consistent between the declaration and the definition of a given object. Standard reference 7.6.2; 6a

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

              Created:
              Updated: