[LLVMbugs] [Bug 15908] New: crash-on-invalid with invalid friend definition inside class

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Fri May 3 17:05:23 PDT 2013


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: unassignedclangbugs at nondot.org
          Reporter: richard-llvm at metafoo.co.uk
                CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
    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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20130504/00114527/attachment.html>


More information about the llvm-bugs mailing list