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

            Bug ID: 15485
           Summary: UNREACHALBE at IdentifierResolver.cpp:78 when
                    friend-ing a using declaratoin
           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 10162
  --> http://llvm.org/bugs/attachment.cgi?id=10162&action=edit
source causing error

The following code (which is not legal anyway, I think):

struct A
{
    void delete_foo();
};

struct B : public A
{
    using A::delete_foo;
};

struct Foo { friend void B::delete_foo(); private: ~Foo() { } };

results in an llvm_unreachable being hit in clang trunk; similar results are
obtained when friending a namespace-scope using declaration.

I've debugged the error and made a small patch which seems to resolve the issue
(friendusing.patch); this makes the code trigger an error (

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