Skip to content
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] Static analyzer crash with just core checkers #117334

Open
omern1 opened this issue Nov 22, 2024 · 1 comment
Open

[clang] Static analyzer crash with just core checkers #117334

omern1 opened this issue Nov 22, 2024 · 1 comment
Labels
clang:static analyzer crash Prefer [crash-on-valid] or [crash-on-invalid]

Comments

@omern1
Copy link
Member

omern1 commented Nov 22, 2024

https://gcc.godbolt.org/z/aMnzcs6Eb

// > clang -O0 -Xclang -analyzer-checker=core -Xclang -analyze ./input.cpp

enum class a { b };
char c[sizeof(a)];
struct {
  operator a() { return __builtin_bit_cast(a, c); }
} d;
void e() {
  switch (d)
  case a::b:
}
@omern1 omern1 added clang Clang issues not falling into any other category clang:static analyzer labels Nov 22, 2024
@omern1 omern1 changed the title [clang] Static analyzer crash with core checkers [clang] Static analyzer crash with just core checkers Nov 22, 2024
@llvmbot
Copy link
Member

llvmbot commented Nov 22, 2024

@llvm/issue-subscribers-clang-static-analyzer

Author: Nabeel Omer (omern1)

https://gcc.godbolt.org/z/aMnzcs6Eb
// > clang -O0 -Xclang -analyzer-checker=core -Xclang -analyze ./input.cpp

enum class a { b };
char c[sizeof(a)];
struct {
  operator a() { return __builtin_bit_cast(a, c); }
} d;
void e() {
  switch (d)
  case a::b:
}

@EugeneZelenko EugeneZelenko added crash Prefer [crash-on-valid] or [crash-on-invalid] and removed clang Clang issues not falling into any other category labels Nov 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
clang:static analyzer crash Prefer [crash-on-valid] or [crash-on-invalid]
Projects
None yet
Development

No branches or pull requests

3 participants