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

            Bug ID: 18425
           Summary: Assertion failure '!isNull' in getcommonPtr() with
                    clang 3.4 from tarball
           Product: clang
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected], [email protected]
    Classification: Unclassified

Created attachment 11846
  --> http://llvm.org/bugs/attachment.cgi?id=11846&action=edit
Backtrace

NOTE: this is a moderately non-sensical snippet reduced from an actual chunk of
code which does make more sense

$cat a.cc
// compile with clang++ -std=c++11
template <int>
class A {
  public:

  struct B {};

  void Foobar() {
    [](int d) {
      B *e(d);
      [e, d]() {
        int i = d;
        e[i];
      };
    };
  }
};

$clang++ -std=c++11
clang: llvm/tools/clang/lib/AST/../../include/clang/AST/Type.h:547: const
clang::ExtQualsTypeCommonBase* clang::QualType::getCommonPtr() const: Assertion
`!isNull() && "Cannot retrieve a NULL type pointer"' failed.

[backtrace attached]

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to