[LLVMbugs] [Bug 22736] New: Assertion `Ty.getSizeInBits() && "type with size 0"' failed

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Fri Feb 27 19:45:58 PST 2015


http://llvm.org/bugs/show_bug.cgi?id=22736

            Bug ID: 22736
           Summary: Assertion `Ty.getSizeInBits() && "type with size 0"'
                    failed
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: DebugInfo
          Assignee: unassignedbugs at nondot.org
          Reporter: peter at pcc.me.uk
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

$ 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.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20150228/a32350d3/attachment.html>


More information about the llvm-bugs mailing list