[llvm-bugs] [Bug 37908] New: C++ parser crash with friend

via llvm-bugs llvm-bugs at lists.llvm.org
Fri Jun 22 09:51:09 PDT 2018


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

            Bug ID: 37908
           Summary: C++ parser crash with friend
           Product: clang
           Version: trunk
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: C++
          Assignee: unassignedclangbugs at nondot.org
          Reporter: pickensd at synopsys.com
                CC: dgregor at apple.com, llvm-bugs at lists.llvm.org

Created attachment 20460
  --> https://bugs.llvm.org/attachment.cgi?id=20460&action=edit
Test case that demonstrates the problem

The attached test case causes clang to crash:

Assertion failed: !Friend->isDependentContext() && "can't handle friends with
dependent contexts here", file
C:\src\llvm_package_333363\llvm\tools\clang\lib\Sema\SemaAccess.cpp, line 336


To reproduce:
clang -std=c++11 test.cc

-- 
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/20180622/e47352ea/attachment.html>


More information about the llvm-bugs mailing list