Uploaded image for project: 'MariaDB Server'
  1. MariaDB Server
  2. MDEV-36891

std::make_pair compiler note

    XMLWordPrintable

Details

    • Bug
    • Status: Open (View Workflow)
    • Major
    • Resolution: Unresolved
    • 12.0(EOL)
    • 12.0(EOL)
    • None
    • None

    Description

      At the tip of main, git sha 4b79d7b8ee557d53a859aedec839b8673585b514, building with g++ version 11.5.0 on arm64 linux causes the following note (not a warning nor an error) to appear:

      /usr/include/c++/11/bits/stl_pair.h: In instantiation of 'constexpr std::pair<typename std::__strip_reference_wrapper<typename std::decay<_Tp>::type>::__type, typename std::__strip_reference_wrapper<typename std::decay<_Tp2>::type>::__type> std::make_pair(_T1&&, _T2&&) [with _T1 = double&; _T2 = double&; typename std::__strip_reference_wrapper<typename std::decay<_Tp2>::type>::__type = double; typename std::decay<_Tp2>::type = double; typename std::__strip_reference_wrapper<typename std::decay<_Tp>::type>::__type = double; typename std::decay<_Tp>::type = double]':
      /Users/dgosselin/2-server/sql/spatial.cc:1061:36:   required from here
      /usr/include/c++/11/bits/stl_pair.h:567:5: note: parameter passing for argument of type 'std::pair<double, double>' when C++17 is enabled changed to match C++14 in GCC 10.1
        567 |     make_pair(_T1&& __x, _T2&& __y)
            |     ^~~~~~~~~
      

      This appears to be due to:
      https://stackoverflow.com/questions/77729813/parameter-passing-for-argument-when-c17-is-enabled-changed-to-match-c14

      Attachments

        Activity

          People

            Gosselin Dave Gosselin
            Gosselin Dave Gosselin
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:

              Git Integration

                Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.