[llvm-bugs] [Bug 33507] New: Assertion failed: Shift >= 0, file C:\src\llvm_package_303050\llvm\tools\clang\lib\Format\WhitespaceManager.cpp, line 245
via llvm-bugs
llvm-bugs at lists.llvm.org
Mon Jun 19 07:03:27 PDT 2017
https://bugs.llvm.org/show_bug.cgi?id=33507
Bug ID: 33507
Summary: Assertion failed: Shift >= 0, file
C:\src\llvm_package_303050\llvm\tools\clang\lib\Format
\WhitespaceManager.cpp, line 245
Product: clang
Version: trunk
Hardware: PC
OS: Windows NT
Status: NEW
Severity: normal
Priority: P
Component: Formatter
Assignee: unassignedclangbugs at nondot.org
Reporter: mteodor at gmail.com
CC: djasper at google.com, klimek at google.com,
llvm-bugs at lists.llvm.org
We have a dozen of C++ files with some lambdas that make clang-format crash.
One example is this code:
auto found = range::find_if(vsProducts, [&](auto * aProduct) {
static const Version verVs2017;
return true;
});
If I add this code to another C++ file and try to format (on save), it will
crash and create a dump file. (the example code was reduced, but still two
lines)
I've trimmed the config file to just these two lines to reproduce the problem:
BasedOnStyle: Mozilla
AlignConsecutiveDeclarations: 'true'
Thanks
--
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/20170619/e784de4a/attachment.html>
More information about the llvm-bugs
mailing list