Quuxplusone / LLVMBugzillaTest

0 stars 0 forks source link

C++ parser crash with friend #36881

Open Quuxplusone opened 6 years ago

Quuxplusone commented 6 years ago
Bugzilla Link PR37908
Status NEW
Importance P enhancement
Reported by David Pickens (pickensd@synopsys.com)
Reported on 2018-06-22 09:51:09 -0700
Last modified on 2018-06-22 10:03:16 -0700
Version trunk
Hardware PC Windows NT
CC dgregor@apple.com, llvm-bugs@lists.llvm.org, pickensd@synopsys.com
Fixed by commit(s)
Attachments test.cc (982 bytes, text/plain)
Blocks
Blocked by
See also
Created attachment 20460
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
Quuxplusone commented 6 years ago

Attached test.cc (982 bytes, text/plain): Test case that demonstrates the problem