[clang] [Clang][Diagnostics] Mention 'import std' in typeid diagnostic (PR #173236)
via cfe-commits
cfe-commits at lists.llvm.org
Fri Dec 26 17:56:04 PST 2025
github-actions[bot] wrote:
<!--PREMERGE ADVISOR COMMENT: Linux-->
# :penguin: Linux x64 Test Results
* 85235 tests passed
* 1191 tests skipped
* 1 test failed
## Failed Tests
(click on a test name to see its output)
### Clang
<details>
<summary>Clang.SemaCXX/typeid-requires-typeinfo.cpp</summary>
```
Exit Code: 1
Command Output (stdout):
--
# RUN: at line 1
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang -cc1 -internal-isystem /home/gha/actions-runner/_work/llvm-project/llvm-project/build/lib/clang/22/include -nostdsysteminc -triple x86_64-unknown-linux-gnu -fsyntax-only -verify -std=c++20 /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/SemaCXX/typeid-requires-typeinfo.cpp
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang -cc1 -internal-isystem /home/gha/actions-runner/_work/llvm-project/llvm-project/build/lib/clang/22/include -nostdsysteminc -triple x86_64-unknown-linux-gnu -fsyntax-only -verify -std=c++20 /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/SemaCXX/typeid-requires-typeinfo.cpp
# .---command stderr------------
# | error: no expected directives found: consider use of 'expected-no-diagnostics'
# | error: 'expected-error' diagnostics seen but not expected:
# | File /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/SemaCXX/typeid-requires-typeinfo.cpp Line 7: you need to include <typeinfo> or import std before using the 'typeid' operator
# | 2 errors generated.
# `-----------------------------
# error: command failed with exit status: 1
--
```
</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/173236
More information about the cfe-commits
mailing list