title: error: reference to overloaded function could not be resolved
body: <p>The following code:</p>
  
  <pre><code>struct A
  {
      using this_t = A;
      template &lt;class F1&gt;
      void ins(const F1&amp; fu)
      {
      }
      template &lt;class F1, class... Args&gt;
      void ins(const F1&amp; fu, const Args&amp;... args)
      {
          this_t::ins&lt;Args...&gt;(args...);
          // the line which is causing the error:
          constexpr decltype(&amp;this_t::ins&lt;Args...&gt;) func = &amp;this_t::ins&lt;Args...&gt;;
      }
  };
  int main()
  {
      A a;
      a.ins(5, 5, 5, 5, 5);
  }
  
  </code></pre>
  
  <p>Gives this error:</p>
  
  <pre><code>error: reference to overloaded function could not be resolved
  </code></pre>
  
  <p>As shown here: <a href="https://godbolt.org/z/nJiY4A" rel="nofollow noreferrer">https://godbolt.org/z/nJiY4A</a></p>
  
  <p>What's going wrong here and how is it possible to get the pointer to the function then?</p>