<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 - main::Class vs. Class not found for inferior calls"
   href="https://bugs.llvm.org/show_bug.cgi?id=49368">49368</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>main::Class vs. Class not found for inferior calls
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>lldb
          </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>All Bugs
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>lldb-dev@lists.llvm.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>jan.kratochvil@redhat.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>jdevlieghere@apple.com, llvm-bugs@lists.llvm.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>template<class T> class D {
public:
  T t;
  T &m() {
    return t;
  }
};
int main() {
  struct C { unsigned i = 42; };
  D<C> d;
  return d.m().i; // breakpoint
}

(lldb) p d.m()
error: error: function 'D<C>::m' is used but not defined in this translation
unit, and cannot be defined in any other translation unit because its type does
not have linkage
<user expression 0>:1:3: used here
d.m()
  ^
$ llvm-nm -C a.out
0000000000401160 t D<main::C>::m()

(gdb) p d.m()
$1 = (C &) @0x7fffffffcf58: {i = 42}</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>