<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 --- - Assertion `Ty.getSizeInBits() && "type with size 0"' failed"
   href="http://llvm.org/bugs/show_bug.cgi?id=22736">22736</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Assertion `Ty.getSizeInBits() && "type with size 0"' failed
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>libraries
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>trunk
          </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>DebugInfo
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>peter@pcc.me.uk
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvmbugs@cs.uiuc.edu
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr></table>
      <p>
        <div>
        <pre>$ cat foo.cpp
template <typename> class A {
public:
  A(int, unsigned);
  void m_fn1() {}
  int ptr_;
  long length_;
};

extern template class A<int>;
class B;
class C {
public:
  bool m_fn2(B *) const;
};
class B {
  B(A<int>);
  bool m_fn3(const C &);
  A<int> buffer_;
};
B::B(A<int> p1) : buffer_(p1) {}

bool B::m_fn3(const C &p1) {
  B a(A<int>(0, 0));
  return p1.m_fn2(&a);
}

$ ~/src/llvm-build-dbg/bin/clang -cc1 -triple armv7 -S -target-feature -neon -g
-Os -o /dev/null -x c++ foo.cpp 
clang: .../src/llvm/lib/IR/DebugInfo.cpp:182: unsigned int
llvm::DIVariable::getSizeInBits(const DITypeIdentifierMap &): Assertion
`Ty.getSizeInBits() && "type with size 0"' failed.</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>