<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 --- - Repetition of template name of conversion operator in backtrace"
   href="http://llvm.org/bugs/show_bug.cgi?id=18125">18125</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Repetition of template name of conversion operator in backtrace
          </td>
        </tr>

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

        <tr>
          <th>Version</th>
          <td>trunk
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>All
          </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>C++
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>jonathan.sauer@gmx.de
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>dgregor@apple.com, llvmbugs@cs.uiuc.edu
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr></table>
      <p>
        <div>
        <pre>The following (incorrect) code results in a slightly confusing template
backtrace when being compiled with clang r196094:

struct Foo {
    template <typename T>
    operator T() const
    {
        T::bar();
    }
};

template <typename T>
struct Vector {};

int main()
{
    Vector<float>   v = Foo();
}


This results in:

% ~/LLVM/build/Release+Asserts/bin/clang++ -c clang.cppclang.cpp:5:12: error:
no member named 'bar' in 'Vector<float>'
        T::bar();
           ^
clang.cpp:14:25: note: in instantiation of function template specialization
'Foo::operator Vector<Vector<float> >'
      requested here
    Vector<float>   v = Foo();
                        ^
1 error generated.


For some reason, in the note/backtrace the operator is not called
'Foo::operator Vector<float>', but 'Foo::operator Vector<Vector<float> >', with
'Vector' being repeated.</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>