https://llvm.org/bugs/show_bug.cgi?id=27411

            Bug ID: 27411
           Summary: clang Assertion failed: !R.empty() &&
                    (*R.begin())->isCXXClassMember()
           Product: new-bugs
           Version: unspecified
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: normal
          Priority: P
         Component: new bugs
          Assignee: unassignedb...@nondot.org
          Reporter: yaron.ke...@gmail.com
                CC: dgre...@apple.com, llvm-bugs@lists.llvm.org
    Classification: Unclassified

Compiling this:


namespace std {}
struct A {
  char string;
};
using std::string;
a(string


with clang r266661 results in:

file.cpp:5:7: error: no member named 'string' in namespace 'std'; did you mean
'A::string'?
using std::string;
      ^~~~~~~~~~~
      A::string
file.cpp:3:8: note: 'A::string' declared here
  char string;
       ^
Assertion failed: !R.empty() && (*R.begin())->isCXXClassMember(), file
C:\llvm\tools\clang\lib\Sema\SemaExprMember.cpp, line 91

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to