<html>
    <head>
      <base href="https://bugs.llvm.org/">
    </head>
    <body><span class="vcard"><a class="email" href="mailto:dblaikie@gmail.com" title="David Blaikie <dblaikie@gmail.com>"> <span class="fn">David Blaikie</span></a>
</span> changed
          <a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED INVALID - clang rejects valid code for error: no viable constructor or deduction guide for deduction"
   href="https://bugs.llvm.org/show_bug.cgi?id=47352">bug 47352</a>
          <br>
             <table border="1" cellspacing="0" cellpadding="8">
          <tr>
            <th>What</th>
            <th>Removed</th>
            <th>Added</th>
          </tr>

         <tr>
           <td style="text-align:right;">Resolution</td>
           <td>---
           </td>
           <td>INVALID
           </td>
         </tr>

         <tr>
           <td style="text-align:right;">CC</td>
           <td>
                
           </td>
           <td>dblaikie@gmail.com
           </td>
         </tr>

         <tr>
           <td style="text-align:right;">Status</td>
           <td>NEW
           </td>
           <td>RESOLVED
           </td>
         </tr></table>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED INVALID - clang rejects valid code for error: no viable constructor or deduction guide for deduction"
   href="https://bugs.llvm.org/show_bug.cgi?id=47352#c1">Comment # 1</a>
              on <a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED INVALID - clang rejects valid code for error: no viable constructor or deduction guide for deduction"
   href="https://bugs.llvm.org/show_bug.cgi?id=47352">bug 47352</a>
              from <span class="vcard"><a class="email" href="mailto:dblaikie@gmail.com" title="David Blaikie <dblaikie@gmail.com>"> <span class="fn">David Blaikie</span></a>
</span></b>
        <pre>Looks like GCC ToT rejects this too:

$ clang++-tot valid.cpp -c
valid.cpp:13:15: error: use of class template 'A<int>::B' requires template
arguments
    A< int >::B v(0, int_< 0 >());
              ^
valid.cpp:6:12: note: template is declared here
    struct B{
           ^
1 error generated.
blaikie@blaikie-linux2:~/dev/scratch$ g++-tot valid.cpp -c
valid.cpp: In function ‘int main()’:
valid.cpp:13:17: error: missing template arguments before ‘v’
   13 |     A< int >::B v(0, int_< 0 >());
      |                 ^
valid.cpp:14:11: error: ‘v’ was not declared in this scope
   14 |     (void)v;
      |           ^


<a href="https://godbolt.org/z/67WTY5">https://godbolt.org/z/67WTY5</a></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>