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

            Bug ID: 15908
           Summary: crash-on-invalid with invalid friend definition inside
                    class
           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

This triggers an assert:

struct X {
  class foo_bar_Test {
    void TestBody();
  };
  friend void foo_bar_Test::TestBody() {
  }
};

clang-3.2: tools/clang/lib/Sema/SemaAccess.cpp:1753: Sema::AccessResult
clang::Sema::CheckFriendAccess(clang::NamedDecl *): Assertion
`method->getQualifier()' failed.

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