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

armcl allows illegal attribute in friend declarations

    XMLWordPrintable

Details

    • Bug
    • Status: New
    • Low
    • Resolution: Unresolved
    • 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

    Description

      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

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated: