Uploaded image for project: 'SonarCFamily'
  1. SonarCFamily
  2. CPP-2696

Fix Clang parser crash on Boost asio/execution/blocking.hpp

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 6.19
    • Component/s: C++, Clang
    • Labels:
      None

      Description

      Workaround: define BOOST_ASIO_DISABLE_NOEXCEPT or ASIO_DISABLE_NOEXCEPT (depending on boost version) macro during build with

      -DBOOST_ASIO_DISABLE_NOEXCEPT
      

      or

      -DASIO_DISABLE_NOEXCEPT
      

      Reduced example

      class f {
        friend void friendF(int i = 0) noexcept(true) {}
      };
      

      Seems that this was fixed in Clang 12 by
      https://github.com/llvm/llvm-project/commit/8c98c8803430804010da06a07cfb291dab59067c

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                evgeny.mandrikov Evgeny Mandrikov
                Reporter:
                massimo.paladin Massimo PALADIN
              • Votes:
                4 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: