<html>
    <head>
      <base href="https://bugs.llvm.org/">
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - "no matching constructor" when "using" template base class constructor"
   href="https://bugs.llvm.org/show_bug.cgi?id=39076">39076</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>"no matching constructor" when "using" template base class constructor
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>clang
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>7.0
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>PC
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Linux
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>C++
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>unassignedclangbugs@nondot.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>duvan.llvm@gmail.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>dgregor@apple.com, llvm-bugs@lists.llvm.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=20920" name="attach_20920" title="Small source code file to reproduce the problem.">attachment 20920</a> <a href="attachment.cgi?id=20920&action=edit" title="Small source code file to reproduce the problem.">[details]</a></span>
Small source code file to reproduce the problem.

When compiling the attached file 

  bash> clang++ --std=c++17 bug.C

clang errors out with:

bug.C:14:15: error: no matching constructor for initialization of 'Sub<double>'
  Sub<double> sub(nullptr);
              ^   ~~~~~~~
bug.C:8:8: note: candidate constructor (the implicit copy constructor) not
viable: no known conversion from 'nullptr_t' to 'const Sub<double>' for 1st
argument
struct Sub : public Base<T, T> {
       ^
bug.C:8:8: note: candidate constructor (the implicit move constructor) not
viable: no known conversion from 'nullptr_t' to 'Sub<double>' for 1st argument
struct Sub : public Base<T, T> {
       ^
bug.C:8:8: note: candidate constructor (the implicit default constructor) not
viable: requires 0 arguments, but 1 was provided
1 error generated.

It seems the base class constructor Base(double*) is not picked up despite the 

  using base = Base<T, T>;
  using typename base::Base;

Works in gcc 8.2.0.</pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are on the CC list for the bug.</li>
      </ul>
    </body>
</html>