<html>
    <head>
      <base href="http://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 --- - gcc-4.9 happy, but clang error: no template named 'B_'; did you mean 'X::B_'"
   href="http://llvm.org/bugs/show_bug.cgi?id=19566">19566</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>gcc-4.9 happy, but clang error: no template named 'B_'; did you mean 'X::B_'
          </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>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>mcrosier@codeaurora.org
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>apazos@codeaurora.org, dgregor@apple.com, llvmbugs@cs.uiuc.edu, mcrosier@codeaurora.org, richard-llvm@metafoo.co.uk
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Clang produces and error for the following test case:

struct X {
  template<class T> struct B_ { T x; };
};
template<class T>
int foo(typename X::B_<T>) { return (&X::operator B_<T> ); }


$ clang-arm64-x++ -S foo.ii -w -o -
foo.ii:6:51: error: no template named 'B_'; did you mean 'X::B_'?
int foo(typename X::B_<T>) { return (&X::operator B_<T> ); }
                                                  ^~
X::B_                                                                           
foo.ii:3:28: note: 'X::B_' declared here

  template<class T> struct B_ { T x; };
                           ^
1 error generated.

However, the latest gcc-4.9 happily accepts this..  Richard? :D</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>