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

            Bug ID: 20525
           Summary: Crash on invalid (dyn_cast a nullptr)
           Product: clang
           Version: trunk
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected], [email protected]
    Classification: Unclassified

Foo is undeclared and clang ends up calling dyn_cast on nullptr in
Sema::FinalizeDeclaration.

clang -cc1 -fsyntax-only

struct test
{
  template <bool B, typename T = void> struct enable_if;
  template <typename T> struct enable_if<true, T> { typedef T Type; };

  template <typename T>
  static typename enable_if<Foo<T>::bar, void>::Type method()
  {
  }
};

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