armcl allows illegal attribute in friend declarations

XMLWordPrintable

    • Type: Bug
    • Resolution: Unresolved
    • Priority: Low
    • Code Generation Tools
    • CODEGEN-4246
    • 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

      armcl allows illegal attribute in friend declarations. The test asserts that if an attribute list is specified in a friend declaration, then the declaration must also be a definition. (C++14 7.6.1;4c)

      All of the cases involved in this test involve a [[deprecated]] attribute specified after a class or union keyword in a friend declaration. For example,

      struct S

      { template <class> friend union [[deprecated]] U; }

      ;
      The armcl compiler does not generate an error for these cases even though they are in violation of the standard

            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-1272 - armcl allows illegal attribute in f...
                SYNCHRONIZED
                • Last Sync Date: