| Issue |
53008
|
| Summary |
Formatter: Crash with inline comment and alignment of assignments and qualifiers
|
| Labels |
new issue
|
| Assignees |
|
| Reporter |
JohelEGP
|
`.clang-format`:
```
AlignConsecutiveAssignments: Consecutive
ColumnLimit: 120
QualifierAlignment: Custom
QualifierOrder: ["static", "inline", "constexpr", "const", "volatile", "type"]
```
Input and expected formatted result:
```C++
export template <class Id, class R, class N> using quantity_kind = quantity /**/ <kind<Id, R>, N>;
export template <class O, class Id, class R, class N> using quantity_point_kind = quantity_point<O, kind<Id, R>, N>;
```
Actual output:
```
PLEASE submit a bug report to https://bugs.llvm.org/ and include the crash backtrace.
Stack dump:
0. Program arguments: ../root/clang/bin/clang-format x.cpp
#0 0x000055e2e1e712e7 (../root/clang/bin/clang-format+0x712e7)
#1 0x000055e2e1e6f2e6 (../root/clang/bin/clang-format+0x6f2e6)
#2 0x00007f21ef42e870 __restore_rt sigaction.c:0:0
#3 0x000055e2e1ebc2c3 (../root/clang/bin/clang-format+0xbc2c3)
#4 0x000055e2e1ebdf26 (../root/clang/bin/clang-format+0xbdf26)
#5 0x000055e2e1eccd8c (../root/clang/bin/clang-format+0xccd8c)
#6 0x000055e2e1eb60a4 (../root/clang/bin/clang-format+0xb60a4)
#7 0x000055e2e1eb6185 (../root/clang/bin/clang-format+0xb6185)
#8 0x000055e2e1eba37c (../root/clang/bin/clang-format+0xba37c)
#9 0x000055e2e1eccd8c (../root/clang/bin/clang-format+0xccd8c)
#10 0x000055e2e1e9ab06 (../root/clang/bin/clang-format+0x9ab06)
#11 0x000055e2e1e9abd5 (../root/clang/bin/clang-format+0x9abd5)
#12 0x000055e2e1ea4733 (../root/clang/bin/clang-format+0xa4733)
#13 0x000055e2e1ea56a1 (../root/clang/bin/clang-format+0xa56a1)
#14 0x000055e2e1e1951c (../root/clang/bin/clang-format+0x1951c)
#15 0x000055e2e1e10889 (../root/clang/bin/clang-format+0x10889)
#16 0x00007f21eee8eb25 __libc_start_main (/usr/lib/libc.so.6+0x27b25)
#17 0x000055e2e1e10ede (../root/clang/bin/clang-format+0x10ede)
Segmentation fault (core dumped)
```
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs