[LLVMbugs] [Bug 15485] New: UNREACHALBE at IdentifierResolver.cpp:78 when friend-ing a using declaratoin

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Sun Mar 10 13:42:35 PDT 2013


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: unassignedclangbugs at nondot.org
          Reporter: stephenwlin at gmail.com
                CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
    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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20130310/610c1ce3/attachment.html>


More information about the llvm-bugs mailing list