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

Problem with std::swap and <tuple>

    XMLWordPrintable

Details

    • Bug
    • Status: New
    • Medium
    • Resolution: Unresolved
    • Code Generation Tools
    • CODEGEN-3954
    • 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

      Problem with std::swap and <tuple>. A cutdown test case is:

      #include <tuple>
      struct S00{
      S00() = default;
      S00(const S00&) noexcept {}
      S00(const S00&&) noexcept {}
      S00& operator=(const S00&&) noexcept

      { return *this; }

      } s00;

      typedef std::tuple<S00> T00;
      T00 t100(s00), t200(s00);
      const bool b00 = noexcept(t100.swap(t200));

      template void std::swap<S00>(T00&, T00&) noexcept(noexcept(t100.swap(t200)));

      This seems to be a parser bug.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated: