Skip to content

Conversation

@tbaederr
Copy link
Contributor

The original problem does not reproduce anymore, but add the test case.

Fixes #163563

The original problem does not reproduce anymore, but add the test case. Fixes llvm#163563
@llvmbot llvmbot added clang Clang issues not falling into any other category clang:bytecode Issues for the clang bytecode constexpr interpreter labels Nov 11, 2025
@llvmbot
Copy link
Member

llvmbot commented Nov 11, 2025

@llvm/pr-subscribers-clang

Author: Timm Baeder (tbaederr)

Changes

The original problem does not reproduce anymore, but add the test case.

Fixes #163563


Full diff: https://github.com/llvm/llvm-project/pull/167484.diff

1 Files Affected:

  • (modified) clang/test/AST/ByteCode/c.c (+5)
diff --git a/clang/test/AST/ByteCode/c.c b/clang/test/AST/ByteCode/c.c index 3360d4f725b24..bffd557ff77a6 100644 --- a/clang/test/AST/ByteCode/c.c +++ b/clang/test/AST/ByteCode/c.c @@ -387,3 +387,8 @@ void bar2(void) { int a[2][3][4][5]; // all-note {{array 'a' declared here}} foo2(&a[0][4]); // all-warning {{array index 4 is past the end of the array}} } + +void plainComplex(void) { + _Complex cd; // all-warning {{_Complex double}} + cd = *(_Complex *)&(struct { double r, i; }){0.0, 0.0}; // all-warning {{_Complex double}} +} 
@tbaederr tbaederr merged commit c3c4a88 into llvm:main Nov 11, 2025
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

clang:bytecode Issues for the clang bytecode constexpr interpreter clang Clang issues not falling into any other category

2 participants