[clang] [clang-repl] Address error recovery fixing infinite loop while parsing (PR #127569)
via cfe-commits
cfe-commits at lists.llvm.org
Wed Feb 11 00:27:50 PST 2026
github-actions[bot] wrote:
<!--PREMERGE ADVISOR COMMENT: Windows-->
# :window: Windows x64 Test Results
* 52485 tests passed
* 953 tests skipped
* 11 tests failed
## Failed Tests
(click on a test name to see its output)
### Clang
<details>
<summary>Clang.Interpreter/assignment-with-implicit-ctor.cpp</summary>
```
Exit Code: 1
Command Output (stdout):
--
# RUN: at line 3
cat C:\_work\llvm-project\llvm-project\clang\test\Interpreter\assignment-with-implicit-ctor.cpp | c:\_work\llvm-project\llvm-project\build\bin\clang-repl.exe | c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe C:\_work\llvm-project\llvm-project\clang\test\Interpreter\assignment-with-implicit-ctor.cpp
# executed command: cat 'C:\_work\llvm-project\llvm-project\clang\test\Interpreter\assignment-with-implicit-ctor.cpp'
# note: command had no output on stdout or stderr
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\clang-repl.exe'
# .---command stderr------------
# | In file included from <<< inputs >>>:1:
# | input_line_6:1:79: error: expected ';' at end of declaration list
# | 1 | struct box { box() = default; box(int *const data) : data{data} {} int *data{}; };
# | | ^
# | Assertion failed: is(tok::eof), file C:\_work\llvm-project\llvm-project\clang\include\clang/Lex/Token.h, line 209
# | Exception Code: 0xC000001D
# | #0 0x00007ff6518b4a36 __jit_debug_register_code (c:\_work\llvm-project\llvm-project\build\bin\clang-repl.exe+0x454a36)
# | #1 0x00007ff80fb1bb04 (C:\Windows\System32\ucrtbase.dll+0x7bb04)
# | #2 0x00007ff80fb1cad1 (C:\Windows\System32\ucrtbase.dll+0x7cad1)
# | #3 0x00007ff80fb1e4a1 (C:\Windows\System32\ucrtbase.dll+0x7e4a1)
# | #4 0x00007ff80fb1e6e1 (C:\Windows\System32\ucrtbase.dll+0x7e6e1)
# | #5 0x00007ff657b777de __clang_Interpreter_SetValueNoAlloc (c:\_work\llvm-project\llvm-project\build\bin\clang-repl.exe+0x67177de)
# | #6 0x00007ff657b7509a __clang_Interpreter_SetValueNoAlloc (c:\_work\llvm-project\llvm-project\build\bin\clang-repl.exe+0x671509a)
# | #7 0x00007ff657ad710f __clang_Interpreter_SetValueNoAlloc (c:\_work\llvm-project\llvm-project\build\bin\clang-repl.exe+0x667710f)
# | #8 0x00007ff657ad4955 __clang_Interpreter_SetValueNoAlloc (c:\_work\llvm-project\llvm-project\build\bin\clang-repl.exe+0x6674955)
# | #9 0x00007ff657b04441 __clang_Interpreter_SetValueNoAlloc (c:\_work\llvm-project\llvm-project\build\bin\clang-repl.exe+0x66a4441)
# | #10 0x00007ff6568e09e3 __clang_Interpreter_SetValueNoAlloc (c:\_work\llvm-project\llvm-project\build\bin\clang-repl.exe+0x54809e3)
# | #11 0x00007ff6568e05ad __clang_Interpreter_SetValueNoAlloc (c:\_work\llvm-project\llvm-project\build\bin\clang-repl.exe+0x54805ad)
# | #12 0x00007ff6568df404 __clang_Interpreter_SetValueNoAlloc (c:\_work\llvm-project\llvm-project\build\bin\clang-repl.exe+0x547f404)
# | #13 0x00007ff6568dcc40 __clang_Interpreter_SetValueNoAlloc (c:\_work\llvm-project\llvm-project\build\bin\clang-repl.exe+0x547cc40)
# | #14 0x00007ff6568dc5bc __clang_Interpreter_SetValueNoAlloc (c:\_work\llvm-project\llvm-project\build\bin\clang-repl.exe+0x547c5bc)
# | #15 0x00007ff6538f1476 clang::Value::getType(void) const (c:\_work\llvm-project\llvm-project\build\bin\clang-repl.exe+0x2491476)
# | #16 0x00007ff6538f2d4c clang::Value::getType(void) const (c:\_work\llvm-project\llvm-project\build\bin\clang-repl.exe+0x2492d4c)
# | #17 0x00007ff65190910b __jit_debug_register_code (c:\_work\llvm-project\llvm-project\build\bin\clang-repl.exe+0x4a910b)
# | #18 0x00007ff65190879c __jit_debug_register_code (c:\_work\llvm-project\llvm-project\build\bin\clang-repl.exe+0x4a879c)
# | #19 0x00007ff65146510d clang::Value::isPointerOrObjectType(void) const (c:\_work\llvm-project\llvm-project\build\bin\clang-repl.exe+0x510d)
# | #20 0x00007ff658840300 operator new[](unsigned __int64) (c:\_work\llvm-project\llvm-project\build\bin\clang-repl.exe+0x73e0300)
# | #21 0x00007ff81a1b4cb0 (C:\Windows\System32\KERNEL32.DLL+0x14cb0)
# | #22 0x00007ff820e5edcb (C:\Windows\SYSTEM32\ntdll.dll+0x7edcb)
# `-----------------------------
# error: command failed with exit status: 0xc000001d
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe' 'C:\_work\llvm-project\llvm-project\clang\test\Interpreter\assignment-with-implicit-ctor.cpp'
# .---command stderr------------
# | C:\_work\llvm-project\llvm-project\clang\test\Interpreter\assignment-with-implicit-ctor.cpp:12:11: error: CHECK: expected string not found in input
# | // CHECK: good
# | ^
# | <stdin>:1:1: note: scanning from here
# | clang-repl> clang-repl> clang-repl> clang-repl> clang-repl> clang-repl>
# | ^
# | <stdin>:1:5: note: possible intended match here
# | clang-repl> clang-repl> clang-repl> clang-repl> clang-repl> clang-repl>
# | ^
# |
# | Input file: <stdin>
# | Check file: C:\_work\llvm-project\llvm-project\clang\test\Interpreter\assignment-with-implicit-ctor.cpp
# |
# | -dump-input=help explains the following input dump.
# |
# | Input was:
# | <<<<<<
# | 1: clang-repl> clang-repl> clang-repl> clang-repl> clang-repl> clang-repl>
# | check:12'0 X~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ error: no match found
# | check:12'1 ? possible intended match
# | >>>>>>
# `-----------------------------
# error: command failed with exit status: 1
--
```
</details>
<details>
<summary>Clang.Interpreter/execute.cpp</summary>
```
Exit Code: 1
Command Output (stdout):
--
# RUN: at line 2
c:\_work\llvm-project\llvm-project\build\bin\clang-repl.exe "int i = 10;" 'extern "C" int printf(const char*,...);' 'auto r1 = printf("i = %d\n", i);' | c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe --check-prefix=CHECK-DRIVER C:\_work\llvm-project\llvm-project\clang\test\Interpreter\execute.cpp
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\clang-repl.exe' 'int i = 10;' 'extern "C" int printf(const char*,...);' 'auto r1 = printf("i = %d\n", i);'
# note: command had no output on stdout or stderr
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe' --check-prefix=CHECK-DRIVER 'C:\_work\llvm-project\llvm-project\clang\test\Interpreter\execute.cpp'
# note: command had no output on stdout or stderr
# RUN: at line 6
cat C:\_work\llvm-project\llvm-project\clang\test\Interpreter\execute.cpp | c:\_work\llvm-project\llvm-project\build\bin\clang-repl.exe | c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe C:\_work\llvm-project\llvm-project\clang\test\Interpreter\execute.cpp
# executed command: cat 'C:\_work\llvm-project\llvm-project\clang\test\Interpreter\execute.cpp'
# note: command had no output on stdout or stderr
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\clang-repl.exe'
# .---command stderr------------
# | In file included from <<< inputs >>>:1:
# | input_line_14:1:25: error: expected ';' at end of declaration list
# | 1 | struct S { float f = 1.0; S *m = nullptr;} s;
# | | ^
# | Assertion failed: is(tok::eof), file C:\_work\llvm-project\llvm-project\clang\include\clang/Lex/Token.h, line 209
# | Exception Code: 0xC000001D
# | #0 0x00007ff6518b4a36 __jit_debug_register_code (c:\_work\llvm-project\llvm-project\build\bin\clang-repl.exe+0x454a36)
# | #1 0x00007ff80fb1bb04 (C:\Windows\System32\ucrtbase.dll+0x7bb04)
# | #2 0x00007ff80fb1cad1 (C:\Windows\System32\ucrtbase.dll+0x7cad1)
# | #3 0x00007ff80fb1e4a1 (C:\Windows\System32\ucrtbase.dll+0x7e4a1)
# | #4 0x00007ff80fb1e6e1 (C:\Windows\System32\ucrtbase.dll+0x7e6e1)
# | #5 0x00007ff657b777de __clang_Interpreter_SetValueNoAlloc (c:\_work\llvm-project\llvm-project\build\bin\clang-repl.exe+0x67177de)
# | #6 0x00007ff657b7509a __clang_Interpreter_SetValueNoAlloc (c:\_work\llvm-project\llvm-project\build\bin\clang-repl.exe+0x671509a)
# | #7 0x00007ff657ad710f __clang_Interpreter_SetValueNoAlloc (c:\_work\llvm-project\llvm-project\build\bin\clang-repl.exe+0x667710f)
# | #8 0x00007ff657ad4955 __clang_Interpreter_SetValueNoAlloc (c:\_work\llvm-project\llvm-project\build\bin\clang-repl.exe+0x6674955)
# | #9 0x00007ff657b04441 __clang_Interpreter_SetValueNoAlloc (c:\_work\llvm-project\llvm-project\build\bin\clang-repl.exe+0x66a4441)
# | #10 0x00007ff6568e09e3 __clang_Interpreter_SetValueNoAlloc (c:\_work\llvm-project\llvm-project\build\bin\clang-repl.exe+0x54809e3)
# | #11 0x00007ff6568e05ad __clang_Interpreter_SetValueNoAlloc (c:\_work\llvm-project\llvm-project\build\bin\clang-repl.exe+0x54805ad)
# | #12 0x00007ff6568df404 __clang_Interpreter_SetValueNoAlloc (c:\_work\llvm-project\llvm-project\build\bin\clang-repl.exe+0x547f404)
# | #13 0x00007ff6568dcc40 __clang_Interpreter_SetValueNoAlloc (c:\_work\llvm-project\llvm-project\build\bin\clang-repl.exe+0x547cc40)
# | #14 0x00007ff6568dc5bc __clang_Interpreter_SetValueNoAlloc (c:\_work\llvm-project\llvm-project\build\bin\clang-repl.exe+0x547c5bc)
# | #15 0x00007ff6538f1476 clang::Value::getType(void) const (c:\_work\llvm-project\llvm-project\build\bin\clang-repl.exe+0x2491476)
# | #16 0x00007ff6538f2d4c clang::Value::getType(void) const (c:\_work\llvm-project\llvm-project\build\bin\clang-repl.exe+0x2492d4c)
# | #17 0x00007ff65190910b __jit_debug_register_code (c:\_work\llvm-project\llvm-project\build\bin\clang-repl.exe+0x4a910b)
# | #18 0x00007ff65190879c __jit_debug_register_code (c:\_work\llvm-project\llvm-project\build\bin\clang-repl.exe+0x4a879c)
# | #19 0x00007ff65146510d clang::Value::isPointerOrObjectType(void) const (c:\_work\llvm-project\llvm-project\build\bin\clang-repl.exe+0x510d)
# | #20 0x00007ff658840300 operator new[](unsigned __int64) (c:\_work\llvm-project\llvm-project\build\bin\clang-repl.exe+0x73e0300)
# | #21 0x00007ff81a1b4cb0 (C:\Windows\System32\KERNEL32.DLL+0x14cb0)
# | #22 0x00007ff820e5edcb (C:\Windows\SYSTEM32\ntdll.dll+0x7edcb)
# `-----------------------------
# error: command failed with exit status: 0xc000001d
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe' 'C:\_work\llvm-project\llvm-project\clang\test\Interpreter\execute.cpp'
# .---command stderr------------
# | C:\_work\llvm-project\llvm-project\clang\test\Interpreter\execute.cpp:13:11: error: CHECK: expected string not found in input
# | // CHECK: i = 42
# | ^
# | <stdin>:1:1: note: scanning from here
# | clang-repl> clang-repl> clang-repl... clang-repl> clang-repl> clang-repl> clang-repl> clang-repl> clang-repl> clang-repl> clang-repl> clang-repl> clang-repl> clang-repl> clang-repl>
# | ^
# | <stdin>:1:9: note: possible intended match here
# | clang-repl> clang-repl> clang-repl... clang-repl> clang-repl> clang-repl> clang-repl> clang-repl> clang-repl> clang-repl> clang-repl> clang-repl> clang-repl> clang-repl> clang-repl>
# | ^
# |
# | Input file: <stdin>
# | Check file: C:\_work\llvm-project\llvm-project\clang\test\Interpreter\execute.cpp
# |
# | -dump-input=help explains the following input dump.
# |
# | Input was:
# | <<<<<<
# | 1: clang-repl> clang-repl> clang-repl... clang-repl> clang-repl> clang-repl> clang-repl> clang-repl> clang-repl> clang-repl> clang-repl> clang-repl> clang-repl> clang-repl> clang-repl>
# | check:13'0 X~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ error: no match found
# | check:13'1 ? possible intended match
# | >>>>>>
# `-----------------------------
# error: command failed with exit status: 1
--
```
</details>
<details>
<summary>Clang.Interpreter/global-dtor.cpp</summary>
```
Exit Code: 1
Command Output (stdout):
--
# RUN: at line 5
cat C:\_work\llvm-project\llvm-project\clang\test\Interpreter\global-dtor.cpp | c:\_work\llvm-project\llvm-project\build\bin\clang-repl.exe | c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe C:\_work\llvm-project\llvm-project\clang\test\Interpreter\global-dtor.cpp
# executed command: cat 'C:\_work\llvm-project\llvm-project\clang\test\Interpreter\global-dtor.cpp'
# note: command had no output on stdout or stderr
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\clang-repl.exe'
# .---command stderr------------
# | In file included from <<< inputs >>>:1:
# | input_line_9:1:25: error: expected ';' at end of declaration list
# | 1 | struct D { float f = 1.0; D *m = nullptr; D(){} ~D() { printf("D[f=%f, m=0x%llx]\n", f, reinterpret_cast<unsigned long long>(m)); }} d;
# | | ^
# | Assertion failed: is(tok::eof), file C:\_work\llvm-project\llvm-project\clang\include\clang/Lex/Token.h, line 209
# | Exception Code: 0xC000001D
# | #0 0x00007ff6518b4a36 __jit_debug_register_code (c:\_work\llvm-project\llvm-project\build\bin\clang-repl.exe+0x454a36)
# | #1 0x00007ff80fb1bb04 (C:\Windows\System32\ucrtbase.dll+0x7bb04)
# | #2 0x00007ff80fb1cad1 (C:\Windows\System32\ucrtbase.dll+0x7cad1)
# | #3 0x00007ff80fb1e4a1 (C:\Windows\System32\ucrtbase.dll+0x7e4a1)
# | #4 0x00007ff80fb1e6e1 (C:\Windows\System32\ucrtbase.dll+0x7e6e1)
# | #5 0x00007ff657b777de __clang_Interpreter_SetValueNoAlloc (c:\_work\llvm-project\llvm-project\build\bin\clang-repl.exe+0x67177de)
# | #6 0x00007ff657b7509a __clang_Interpreter_SetValueNoAlloc (c:\_work\llvm-project\llvm-project\build\bin\clang-repl.exe+0x671509a)
# | #7 0x00007ff657ad710f __clang_Interpreter_SetValueNoAlloc (c:\_work\llvm-project\llvm-project\build\bin\clang-repl.exe+0x667710f)
# | #8 0x00007ff657ad4955 __clang_Interpreter_SetValueNoAlloc (c:\_work\llvm-project\llvm-project\build\bin\clang-repl.exe+0x6674955)
# | #9 0x00007ff657b04441 __clang_Interpreter_SetValueNoAlloc (c:\_work\llvm-project\llvm-project\build\bin\clang-repl.exe+0x66a4441)
# | #10 0x00007ff6568e09e3 __clang_Interpreter_SetValueNoAlloc (c:\_work\llvm-project\llvm-project\build\bin\clang-repl.exe+0x54809e3)
# | #11 0x00007ff6568e05ad __clang_Interpreter_SetValueNoAlloc (c:\_work\llvm-project\llvm-project\build\bin\clang-repl.exe+0x54805ad)
# | #12 0x00007ff6568df404 __clang_Interpreter_SetValueNoAlloc (c:\_work\llvm-project\llvm-project\build\bin\clang-repl.exe+0x547f404)
# | #13 0x00007ff6568dcc40 __clang_Interpreter_SetValueNoAlloc (c:\_work\llvm-project\llvm-project\build\bin\clang-repl.exe+0x547cc40)
# | #14 0x00007ff6568dc5bc __clang_Interpreter_SetValueNoAlloc (c:\_work\llvm-project\llvm-project\build\bin\clang-repl.exe+0x547c5bc)
# | #15 0x00007ff6538f1476 clang::Value::getType(void) const (c:\_work\llvm-project\llvm-project\build\bin\clang-repl.exe+0x2491476)
# | #16 0x00007ff6538f2d4c clang::Value::getType(void) const (c:\_work\llvm-project\llvm-project\build\bin\clang-repl.exe+0x2492d4c)
# | #17 0x00007ff65190910b __jit_debug_register_code (c:\_work\llvm-project\llvm-project\build\bin\clang-repl.exe+0x4a910b)
# | #18 0x00007ff65190879c __jit_debug_register_code (c:\_work\llvm-project\llvm-project\build\bin\clang-repl.exe+0x4a879c)
# | #19 0x00007ff65146510d clang::Value::isPointerOrObjectType(void) const (c:\_work\llvm-project\llvm-project\build\bin\clang-repl.exe+0x510d)
# | #20 0x00007ff658840300 operator new[](unsigned __int64) (c:\_work\llvm-project\llvm-project\build\bin\clang-repl.exe+0x73e0300)
# | #21 0x00007ff81a1b4cb0 (C:\Windows\System32\KERNEL32.DLL+0x14cb0)
# | #22 0x00007ff820e5edcb (C:\Windows\SYSTEM32\ntdll.dll+0x7edcb)
# `-----------------------------
# error: command failed with exit status: 0xc000001d
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe' 'C:\_work\llvm-project\llvm-project\clang\test\Interpreter\global-dtor.cpp'
# .---command stderr------------
# | C:\_work\llvm-project\llvm-project\clang\test\Interpreter\global-dtor.cpp:10:11: error: CHECK: expected string not found in input
# | // CHECK: D[f=1.000000, m=0x0]
# | ^
# | <stdin>:1:1: note: scanning from here
# | clang-repl> clang-repl> clang-repl> clang-repl> clang-repl> clang-repl> clang-repl> clang-repl> clang-repl>
# | ^
# | <stdin>:1:11: note: possible intended match here
# | clang-repl> clang-repl> clang-repl> clang-repl> clang-repl> clang-repl> clang-repl> clang-repl> clang-repl>
# | ^
# |
# | Input file: <stdin>
# | Check file: C:\_work\llvm-project\llvm-project\clang\test\Interpreter\global-dtor.cpp
# |
# | -dump-input=help explains the following input dump.
# |
# | Input was:
# | <<<<<<
# | 1: clang-repl> clang-repl> clang-repl> clang-repl> clang-repl> clang-repl> clang-repl> clang-repl> clang-repl>
# | check:10'0 X~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ error: no match found
# | check:10'1 ? possible intended match
# | >>>>>>
# `-----------------------------
# error: command failed with exit status: 1
--
```
</details>
<details>
<summary>Clang.Interpreter/inline-virtual.cpp</summary>
```
Exit Code: 1
Command Output (stdout):
--
# RUN: at line 8
cat C:\_work\llvm-project\llvm-project\clang\test\Interpreter\inline-virtual.cpp | c:\_work\llvm-project\llvm-project\build\bin\clang-repl.exe -Xcc -fno-rtti -Xcc -fno-sized-deallocation | c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe C:\_work\llvm-project\llvm-project\clang\test\Interpreter\inline-virtual.cpp
# executed command: cat 'C:\_work\llvm-project\llvm-project\clang\test\Interpreter\inline-virtual.cpp'
# note: command had no output on stdout or stderr
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\clang-repl.exe' -Xcc -fno-rtti -Xcc -fno-sized-deallocation
# .---command stderr------------
# | In file included from <<< inputs >>>:1:
# | input_line_13:1:53: error: expected ';' after struct
# | 1 | struct A { int a; A(int a) : a(a) {} virtual ~A(); };
# | | ^
# | | ;
# | error: Parsing failed.
# | input_line_17:1:8: error: use of undeclared identifier 'A'
# | 1 | inline A::~A() { printf("~A(%d)\n", a); }
# | | ^
# | error: Parsing failed.
# | input_line_20:1:1: error: unknown type name 'A'
# | 1 | A *a1 = new A(1);
# | | ^
# | input_line_20:1:13: error: unknown type name 'A'
# | 1 | A *a1 = new A(1);
# | | ^
# | error: Parsing failed.
# | input_line_21:1:8: error: use of undeclared identifier 'a1'
# | 1 | delete a1;
# | | ^~
# | error: Parsing failed.
# | input_line_25:1:1: error: unknown type name 'A'
# | 1 | A a2(2);
# | | ^
# | error: Parsing failed.
# | Assertion failed: DeferredInlineMemberFuncDefs.empty() || Diags.hasErrorOccurred(), file C:\_work\llvm-project\llvm-project\clang\lib\CodeGen\ModuleBuilder.cpp, line 92
# | Exception Code: 0xC000001D
# | #0 0x00007ff6518b4a36 __jit_debug_register_code (c:\_work\llvm-project\llvm-project\build\bin\clang-repl.exe+0x454a36)
# | #1 0x00007ff80fb1bb04 (C:\Windows\System32\ucrtbase.dll+0x7bb04)
# | #2 0x00007ff80fb1cad1 (C:\Windows\System32\ucrtbase.dll+0x7cad1)
# | #3 0x00007ff80fb1e4a1 (C:\Windows\System32\ucrtbase.dll+0x7e4a1)
# | #4 0x00007ff80fb1e6e1 (C:\Windows\System32\ucrtbase.dll+0x7e6e1)
# | #5 0x00007ff6538faf46 clang::Value::printData(class llvm::raw_ostream &) const (c:\_work\llvm-project\llvm-project\build\bin\clang-repl.exe+0x249af46)
# | #6 0x00007ff6538fa870 clang::Value::printData(class llvm::raw_ostream &) const (c:\_work\llvm-project\llvm-project\build\bin\clang-repl.exe+0x249a870)
# | #7 0x00007ff6568d0799 clang::Value::printData(class llvm::raw_ostream &) const (c:\_work\llvm-project\llvm-project\build\bin\clang-repl.exe+0x5470799)
# | #8 0x00007ff6568d0bf0 clang::Value::printData(class llvm::raw_ostream &) const (c:\_work\llvm-project\llvm-project\build\bin\clang-repl.exe+0x5470bf0)
# | #9 0x00007ff65665a2bb clang::Value::printData(class llvm::raw_ostream &) const (c:\_work\llvm-project\llvm-project\build\bin\clang-repl.exe+0x51fa2bb)
# | #10 0x00007ff6538f0f80 clang::Value::getType(void) const (c:\_work\llvm-project\llvm-project\build\bin\clang-repl.exe+0x2490f80)
# | #11 0x00007ff6518e7aa8 __jit_debug_register_code (c:\_work\llvm-project\llvm-project\build\bin\clang-repl.exe+0x487aa8)
# | #12 0x00007ff653826b03 clang::Value::getType(void) const (c:\_work\llvm-project\llvm-project\build\bin\clang-repl.exe+0x23c6b03)
# | #13 0x00007ff6519082bf __jit_debug_register_code (c:\_work\llvm-project\llvm-project\build\bin\clang-repl.exe+0x4a82bf)
# | #14 0x00007ff651909790 __jit_debug_register_code (c:\_work\llvm-project\llvm-project\build\bin\clang-repl.exe+0x4a9790)
# | #15 0x00007ff65146570b clang::Value::isPointerOrObjectType(void) const (c:\_work\llvm-project\llvm-project\build\bin\clang-repl.exe+0x570b)
# | #16 0x00007ff658840300 operator new[](unsigned __int64) (c:\_work\llvm-project\llvm-project\build\bin\clang-repl.exe+0x73e0300)
# | #17 0x00007ff81a1b4cb0 (C:\Windows\System32\KERNEL32.DLL+0x14cb0)
# | #18 0x00007ff820e5edcb (C:\Windows\SYSTEM32\ntdll.dll+0x7edcb)
# `-----------------------------
# error: command failed with exit status: 0xc000001d
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe' 'C:\_work\llvm-project\llvm-project\clang\test\Interpreter\inline-virtual.cpp'
# .---command stderr------------
# | C:\_work\llvm-project\llvm-project\clang\test\Interpreter\inline-virtual.cpp:24:11: error: CHECK: expected string not found in input
# | // CHECK: ~A(1)
# | ^
# | <stdin>:1:1: note: scanning from here
# | clang-repl> clang-repl> clang-repl> clang-repl> clang-repl> clang-repl> clang-repl> clang-repl> clang-repl... clang-repl> clang-repl... clang-repl> clang-repl> clang-repl> clang-repl> clang-repl> clang-repl> clang-repl> clang-repl> clang-repl> clang-repl> clang-repl> clang-repl> clang-repl> clang-repl> clang-repl> clang-repl> clang-repl> clang-repl>
# | ^
# |
# | Input file: <stdin>
# | Check file: C:\_work\llvm-project\llvm-project\clang\test\Interpreter\inline-virtual.cpp
# |
# | -dump-input=help explains the following input dump.
# |
# | Input was:
# | <<<<<<
# | 1: clang-repl> clang-repl> clang-repl> clang-repl> clang-repl> clang-repl> clang-repl> clang-repl> clang-repl... clang-repl> clang-repl... clang-repl> clang-repl> clang-repl> clang-repl> clang-repl> clang-repl> clang-repl> clang-repl> clang-repl> clang-repl> clang-repl> clang-repl> clang-repl> clang-repl> clang-repl> clang-repl> clang-repl> clang-repl>
# | check:24 X~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ error: no match found
# | >>>>>>
# `-----------------------------
# error: command failed with exit status: 1
--
```
</details>
<details>
<summary>Clang.Interpreter/pretty-print.cpp</summary>
```
Exit Code: 1
Command Output (stdout):
--
# RUN: at line 1
c:\_work\llvm-project\llvm-project\build\bin\clang-repl.exe "int i = 10;" 'extern "C" int printf(const char*,...);' 'auto r1 = printf("i = %d\n", i);' | c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe --check-prefix=CHECK-DRIVER C:\_work\llvm-project\llvm-project\clang\test\Interpreter\pretty-print.cpp
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\clang-repl.exe' 'int i = 10;' 'extern "C" int printf(const char*,...);' 'auto r1 = printf("i = %d\n", i);'
# note: command had no output on stdout or stderr
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe' --check-prefix=CHECK-DRIVER 'C:\_work\llvm-project\llvm-project\clang\test\Interpreter\pretty-print.cpp'
# note: command had no output on stdout or stderr
# RUN: at line 6
cat C:\_work\llvm-project\llvm-project\clang\test\Interpreter\pretty-print.cpp | c:\_work\llvm-project\llvm-project\build\bin\clang-repl.exe -Xcc -std=c++11 -Xcc -fno-delayed-template-parsing | c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe C:\_work\llvm-project\llvm-project\clang\test\Interpreter\pretty-print.cpp
# executed command: cat 'C:\_work\llvm-project\llvm-project\clang\test\Interpreter\pretty-print.cpp'
# note: command had no output on stdout or stderr
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\clang-repl.exe' -Xcc -std=c++11 -Xcc -fno-delayed-template-parsing
# .---command stderr------------
# | In file included from <<< inputs >>>:1:
# | input_line_22:1:68: error: expected ';' after struct
# | 1 | struct S3 { int* p; S3() { p = new int(42); } ~S3() { delete p; } };
# | | ^
# | | ;
# | error: Parsing failed.
# | input_line_23:1:1: error: use of undeclared identifier 'S3'
# | 1 | S3{}
# | | ^~
# | error: Parsing failed.
# | input_line_25:1:1: error: unknown type name 'S3'
# | 1 | S3 s3;
# | | ^
# | error: Parsing failed.
# | input_line_26:1:1: error: use of undeclared identifier 's3'
# | 1 | s3
# | | ^~
# | error: Parsing failed.
# | input_line_29:1:42: error: expected ';' after struct
# | 1 | struct S4 { ~S4() { printf("~S4()\n"); }};
# | | ^
# | | ;
# | error: Parsing failed.
# | input_line_30:1:1: error: use of undeclared identifier 'S4'
# | 1 | S4{}
# | | ^~
# | error: Parsing failed.
# | input_line_58:1:38: error: expected ';' after struct
# | 1 | struct S5 { int foo() { return 42; }};
# | | ^
# | | ;
# | error: Parsing failed.
# | input_line_59:1:2: error: use of undeclared identifier 'S5'
# | 1 | &S5::foo
# | | ^
# | error: Parsing failed.
# | Assertion failed: DeferredInlineMemberFuncDefs.empty() || Diags.hasErrorOccurred(), file C:\_work\llvm-project\llvm-project\clang\lib\CodeGen\ModuleBuilder.cpp, line 92
# | Exception Code: 0xC000001D
# | #0 0x00007ff6518b4a36 __jit_debug_register_code (c:\_work\llvm-project\llvm-project\build\bin\clang-repl.exe+0x454a36)
# | #1 0x00007ff80fb1bb04 (C:\Windows\System32\ucrtbase.dll+0x7bb04)
# | #2 0x00007ff80fb1cad1 (C:\Windows\System32\ucrtbase.dll+0x7cad1)
# | #3 0x00007ff80fb1e4a1 (C:\Windows\System32\ucrtbase.dll+0x7e4a1)
# | #4 0x00007ff80fb1e6e1 (C:\Windows\System32\ucrtbase.dll+0x7e6e1)
# | #5 0x00007ff6538faf46 clang::Value::printData(class llvm::raw_ostream &) const (c:\_work\llvm-project\llvm-project\build\bin\clang-repl.exe+0x249af46)
# | #6 0x00007ff6538fa870 clang::Value::printData(class llvm::raw_ostream &) const (c:\_work\llvm-project\llvm-project\build\bin\clang-repl.exe+0x249a870)
# | #7 0x00007ff6568d0799 clang::Value::printData(class llvm::raw_ostream &) const (c:\_work\llvm-project\llvm-project\build\bin\clang-repl.exe+0x5470799)
# | #8 0x00007ff6568d0bf0 clang::Value::printData(class llvm::raw_ostream &) const (c:\_work\llvm-project\llvm-project\build\bin\clang-repl.exe+0x5470bf0)
# | #9 0x00007ff65665a2bb clang::Value::printData(class llvm::raw_ostream &) const (c:\_work\llvm-project\llvm-project\build\bin\clang-repl.exe+0x51fa2bb)
# | #10 0x00007ff6538f0f80 clang::Value::getType(void) const (c:\_work\llvm-project\llvm-project\build\bin\clang-repl.exe+0x2490f80)
# | #11 0x00007ff6518e7aa8 __jit_debug_register_code (c:\_work\llvm-project\llvm-project\build\bin\clang-repl.exe+0x487aa8)
# | #12 0x00007ff653826b03 clang::Value::getType(void) const (c:\_work\llvm-project\llvm-project\build\bin\clang-repl.exe+0x23c6b03)
# | #13 0x00007ff6519082bf __jit_debug_register_code (c:\_work\llvm-project\llvm-project\build\bin\clang-repl.exe+0x4a82bf)
# | #14 0x00007ff651909790 __jit_debug_register_code (c:\_work\llvm-project\llvm-project\build\bin\clang-repl.exe+0x4a9790)
# | #15 0x00007ff65146570b clang::Value::isPointerOrObjectType(void) const (c:\_work\llvm-project\llvm-project\build\bin\clang-repl.exe+0x570b)
# | #16 0x00007ff658840300 operator new[](unsigned __int64) (c:\_work\llvm-project\llvm-project\build\bin\clang-repl.exe+0x73e0300)
# | #17 0x00007ff81a1b4cb0 (C:\Windows\System32\KERNEL32.DLL+0x14cb0)
# | #18 0x00007ff820e5edcb (C:\Windows\SYSTEM32\ntdll.dll+0x7edcb)
# `-----------------------------
# error: command failed with exit status: 0xc000001d
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe' 'C:\_work\llvm-project\llvm-project\clang\test\Interpreter\pretty-print.cpp'
# .---command stderr------------
# | C:\_work\llvm-project\llvm-project\clang\test\Interpreter\pretty-print.cpp:10:11: error: CHECK: expected string not found in input
# | // CHECK: (const char[3]) "ab"
# | ^
# | <stdin>:1:1: note: scanning from here
# | clang-repl> clang-repl... clang-repl> clang-repl> clang-repl> clang-repl> clang-repl> clang-repl> clang-repl> clang-repl> clang-repl> clang-repl> clang-repl> clang-repl> clang-repl> clang-repl> clang-repl> clang-repl> clang-repl> clang-repl> clang-repl> clang-repl> clang-repl> clang-repl> clang-repl> clang-repl> clang-repl> clang-repl> clang-repl> clang-repl> clang-repl> clang-repl> clang-repl> clang-repl> clang-repl> clang-repl> clang-repl> clang-repl> clang-repl> clang-repl> clang-repl> clang-repl> clang-repl> clang-repl> clang-repl> clang-repl> clang-repl> clang-repl> clang-repl> clang-repl> clang-repl> clang-repl> clang-repl> clang-repl> clang-repl> clang-repl> clang-repl> clang-repl> clang-repl> clang-repl> clang-repl> clang-repl> clang-repl> clang-repl> clang-repl> clang-repl> clang-repl> clang-repl> clang-repl> clang-repl> clang-repl> clang-repl> clang-repl>
# | ^
# | <stdin>:1:6: note: possible intended match here
# | clang-repl> clang-repl... clang-repl> clang-repl> clang-repl> clang-repl> clang-repl> clang-repl> clang-repl> clang-repl> clang-repl> clang-repl> clang-repl> clang-repl> clang-repl> clang-repl> clang-repl> clang-repl> clang-repl> clang-repl> clang-repl> clang-repl> clang-repl> clang-repl> clang-repl> clang-repl> clang-repl> clang-repl> clang-repl> clang-repl> clang-repl> clang-repl> clang-repl> clang-repl> clang-repl> clang-repl> clang-repl> clang-repl> clang-repl> clang-repl> clang-repl> clang-repl> clang-repl> clang-repl> clang-repl> clang-repl> clang-repl> clang-repl> clang-repl> clang-repl> clang-repl> clang-repl> clang-repl> clang-repl> clang-repl> clang-repl> clang-repl> clang-repl> clang-repl> clang-repl> clang-repl> clang-repl> clang-repl> clang-repl> clang-repl> clang-repl> clang-repl> clang-repl> clang-repl> clang-repl> clang-repl> clang-repl> clang-repl>
# | ^
# |
# | Input file: <stdin>
# | Check file: C:\_work\llvm-project\llvm-project\clang\test\Interpreter\pretty-print.cpp
# |
# | -dump-input=help explains the following input dump.
# |
# | Input was:
# | <<<<<<
# | 1: clang-repl> clang-repl... clang-repl> clang-repl> clang-repl> clang-repl> clang-repl> clang-repl> clang-repl> clang-repl> clang-repl> clang-repl> clang-repl> clang-repl> clang-repl> clang-repl> clang-repl> clang-repl> clang-repl> clang-repl> clang-repl> clang-repl> clang-repl> clang-repl> clang-repl> clang-repl> clang-repl> clang-repl> clang-repl> clang-repl> clang-repl> clang-repl> clang-repl> clang-repl> clang-repl> clang-repl> clang-repl> clang-repl> clang-repl> clang-repl> clang-repl> clang-repl> clang-repl> clang-repl> clang-repl> clang-repl> clang-repl> clang-repl> clang-repl> clang-repl> clang-repl> clang-repl> clang-repl> clang-repl> clang-repl> clang-repl> clang-repl> clang-repl> clang-repl> clang-repl> clang-repl> clang-repl> clang-repl> clang-repl> clang-repl> clang-repl> clang-repl> clang-repl> clang-repl> clang-repl> clang-repl> clang-repl> clang-repl>
# | check:10'0 X~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ error: no match found
# | check:10'1 ? possible intended match
# | >>>>>>
# `-----------------------------
# error: command failed with exit status: 1
--
```
</details>
### Clang-Unit
<details>
<summary>Clang-Unit.Interpreter/_/ClangReplInterpreterTests_exe/23/27</summary>
```
Script(shard):
--
GTEST_OUTPUT=json:C:\_work\llvm-project\llvm-project\build\tools\clang\unittests\Interpreter\.\ClangReplInterpreterTests.exe-Clang-Unit-16100-23-27.json GTEST_SHUFFLE=0 GTEST_TOTAL_SHARDS=27 GTEST_SHARD_INDEX=23 C:\_work\llvm-project\llvm-project\build\tools\clang\unittests\Interpreter\.\ClangReplInterpreterTests.exe
--
Note: This is test shard 24 of 27.
[==========] Running 1 test from 1 test suite.
[----------] Global test environment set-up.
[----------] 1 test from CodeCompletionTest
[ RUN ] CodeCompletionTest.Methods
In file included from <<< inputs >>>:1:
input_line_1:1:66: error: expected ';' after struct
1 | struct Foo{int add(int a){return 42;} int par(int b){return 42;}};
| ^
| ;
Failure value returned from cantFail wrapped call
Parsing failed.
UNREACHABLE executed at C:\_work\llvm-project\llvm-project\llvm\include\llvm/Support/Error.h:841!
unknown file: error: SEH exception with code 0x3221225501 thrown in the test body.
Stack trace:
Assertion failed: DeferredInlineMemberFuncDefs.empty() || Diags.hasErrorOccurred(), file C:\_work\llvm-project\llvm-project\clang\lib\CodeGen\ModuleBuilder.cpp, line 92
--
exit: 3
--
shard JSON output does not exist: C:\_work\llvm-project\llvm-project\build\tools\clang\unittests\Interpreter\.\ClangReplInterpreterTests.exe-Clang-Unit-16100-23-27.json
```
</details>
<details>
<summary>Clang-Unit.Interpreter/_/ClangReplInterpreterTests_exe/24/27</summary>
```
Script(shard):
--
GTEST_OUTPUT=json:C:\_work\llvm-project\llvm-project\build\tools\clang\unittests\Interpreter\.\ClangReplInterpreterTests.exe-Clang-Unit-16100-24-27.json GTEST_SHUFFLE=0 GTEST_TOTAL_SHARDS=27 GTEST_SHARD_INDEX=24 C:\_work\llvm-project\llvm-project\build\tools\clang\unittests\Interpreter\.\ClangReplInterpreterTests.exe
--
Note: This is test shard 25 of 27.
[==========] Running 1 test from 1 test suite.
[----------] Global test environment set-up.
[----------] 1 test from CodeCompletionTest
[ RUN ] CodeCompletionTest.MethodsInvocations
In file included from <<< inputs >>>:1:
input_line_1:1:66: error: expected ';' after struct
1 | struct Foo{int add(int a){return 42;} int par(int b){return 42;}};
| ^
| ;
Failure value returned from cantFail wrapped call
Parsing failed.
UNREACHABLE executed at C:\_work\llvm-project\llvm-project\llvm\include\llvm/Support/Error.h:841!
unknown file: error: SEH exception with code 0x3221225501 thrown in the test body.
Stack trace:
Assertion failed: DeferredInlineMemberFuncDefs.empty() || Diags.hasErrorOccurred(), file C:\_work\llvm-project\llvm-project\clang\lib\CodeGen\ModuleBuilder.cpp, line 92
--
exit: 3
--
shard JSON output does not exist: C:\_work\llvm-project\llvm-project\build\tools\clang\unittests\Interpreter\.\ClangReplInterpreterTests.exe-Clang-Unit-16100-24-27.json
```
</details>
<details>
<summary>Clang-Unit.Interpreter/_/ClangReplInterpreterTests_exe/25/27</summary>
```
Script(shard):
--
GTEST_OUTPUT=json:C:\_work\llvm-project\llvm-project\build\tools\clang\unittests\Interpreter\.\ClangReplInterpreterTests.exe-Clang-Unit-16100-25-27.json GTEST_SHUFFLE=0 GTEST_TOTAL_SHARDS=27 GTEST_SHARD_INDEX=25 C:\_work\llvm-project\llvm-project\build\tools\clang\unittests\Interpreter\.\ClangReplInterpreterTests.exe
--
Note: This is test shard 26 of 27.
[==========] Running 1 test from 1 test suite.
[----------] Global test environment set-up.
[----------] 1 test from CodeCompletionTest
[ RUN ] CodeCompletionTest.NestedInvocations
In file included from <<< inputs >>>:1:
input_line_1:1:66: error: expected ';' after struct
1 | struct Foo{int add(int a){return 42;} int par(int b){return 42;}};
| ^
| ;
Failure value returned from cantFail wrapped call
Parsing failed.
UNREACHABLE executed at C:\_work\llvm-project\llvm-project\llvm\include\llvm/Support/Error.h:841!
unknown file: error: SEH exception with code 0x3221225501 thrown in the test body.
Stack trace:
Assertion failed: DeferredInlineMemberFuncDefs.empty() || Diags.hasErrorOccurred(), file C:\_work\llvm-project\llvm-project\clang\lib\CodeGen\ModuleBuilder.cpp, line 92
--
exit: 3
--
shard JSON output does not exist: C:\_work\llvm-project\llvm-project\build\tools\clang\unittests\Interpreter\.\ClangReplInterpreterTests.exe-Clang-Unit-16100-25-27.json
```
</details>
<details>
<summary>Clang-Unit.Interpreter/_/ClangReplInterpreterTests_exe/IncrementalProcessingTest/EmitCXXGlobalInitFunc</summary>
```
Script:
--
C:\_work\llvm-project\llvm-project\build\tools\clang\unittests\Interpreter\.\ClangReplInterpreterTests.exe --gtest_filter=IncrementalProcessingTest.EmitCXXGlobalInitFunc
--
unknown file
SEH exception with code 0x3221225501 thrown in the test body.
Stack trace:
```
</details>
<details>
<summary>Clang-Unit.Interpreter/_/ClangReplInterpreterTests_exe/InterpreterTest/InstantiateTemplate</summary>
```
Script:
--
C:\_work\llvm-project\llvm-project\build\tools\clang\unittests\Interpreter\.\ClangReplInterpreterTests.exe --gtest_filter=InterpreterTest.InstantiateTemplate
--
unknown file
SEH exception with code 0x3221225501 thrown in the test body.
Stack trace:
```
</details>
<details>
<summary>Clang-Unit.Interpreter/_/ClangReplInterpreterTests_exe/InterpreterTest/Value</summary>
```
Script:
--
C:\_work\llvm-project\llvm-project\build\tools\clang\unittests\Interpreter\.\ClangReplInterpreterTests.exe --gtest_filter=InterpreterTest.Value
--
unknown file
SEH exception with code 0x3221225501 thrown in the test body.
Stack trace:
```
</details>
If these failures are unrelated to your changes (for example tests are broken or flaky at HEAD), please open an issue at https://github.com/llvm/llvm-project/issues and add the `infrastructure` label.
https://github.com/llvm/llvm-project/pull/127569
More information about the cfe-commits
mailing list