<html>
    <head>
      <base href="https://llvm.org/bugs/" />
    </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 --- - Duplicate "no template named" error"
   href="https://llvm.org/bugs/show_bug.cgi?id=24412">24412</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Duplicate "no template named" error
          </td>
        </tr>

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

        <tr>
          <th>Version</th>
          <td>unspecified
          </td>
        </tr>

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

        <tr>
          <th>OS</th>
          <td>All
          </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>Frontend
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>dnovillo@google.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvm-bugs@lists.llvm.org
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr></table>
      <p>
        <div>
        <pre>The following code snippet generates two instances of the same error message. 
This happens with Clang trunk as of today.

$ ./clang++ --version
clang version 3.8.0 (trunk 244446) (llvm/trunk 244449)
Target: x86_64-unknown-linux-gnu
Thread model: posix

$ cat dup.cpp 
namespace x82 {
template <int, typename x94>
void WithArgs(x94);
}
void x123() { WithArgs<1>(x123); }

$ ./clang++ -c -std=c++11 dup.cpp
dup.cpp:5:15: error: no template named 'WithArgs'; did you mean
'x82::WithArgs'?
void x123() { WithArgs<1>(x123); }
              ^~~~~~~~
              x82::WithArgs
dup.cpp:3:6: note: 'x82::WithArgs' declared here
void WithArgs(x94);
     ^
dup.cpp:5:15: error: no template named 'WithArgs'; did you mean
'x82::WithArgs'?
void x123() { WithArgs<1>(x123); }
              ^~~~~~~~
              x82::WithArgs
dup.cpp:3:6: note: 'x82::WithArgs' declared here
void WithArgs(x94);
     ^
2 errors generated.</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>