-
Notifications
You must be signed in to change notification settings - Fork 11.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
clang-scan-deps SegFaults when a .cpp file contains an import statement unbordered with ; #93390
Comments
@llvm/issue-subscribers-clang-frontend Author: Jowillianto (jowillianto)
# Example
- Example Code
```
import moderna.logging
#include <fstream>
#include <format>
#include <chrono>
#include <iostream>
#include <source_location>
template<std::invocable F, typename ...Args> int main() {
cmake_minimum_required(VERSION 3.28) add_library(moderna_logging) if (
|
@llvm/issue-subscribers-clang-modules Author: Jowillianto (jowillianto)
# Example
- Example Code
```
import moderna.logging
#include <fstream>
#include <format>
#include <chrono>
#include <iostream>
#include <source_location>
template<std::invocable F, typename ...Args> int main() {
cmake_minimum_required(VERSION 3.28) add_library(moderna_logging) if (
StackTrace[1/4] Scanning /Users/jonathanwillianto/Documents/Projects/moderna/libs/logging/tests/bench.cpp for CXX dependencies
|
This maybe the root of the cause: Well, it is not the root cause... I'll commit that as a seperate improvement. |
This is related to Given this only crash on invalid, I may not try to ask CMake to add the option. Let's try to fix it. But I spent sometimes but has no clue. The simpler reproducer:
And a minimal reproducer, but I am not sure if they are strictly the same:
From my debugging experience, it looks like the direct cause of the issue is that we invoked |
The |
Maybe not, I reproduced with the trunk. |
Example
Reproduction Steps
import statement
is unbordered.Expected Behaviour
The text was updated successfully, but these errors were encountered: