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

XMLWordPrintable

    • Type: Bug
    • Resolution: Unresolved
    • Priority: 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

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

              Created:
              Updated:

                Connection: Intermediate to External PROD System
                EXTSYNC-1243 - armcl fails to flag an inconsistent...
                SYNCHRONIZED
                • Last Sync Date: