[clang] [Clang] Fix offsetof sign-extending unsigned array indices >= 128 (PR #204139)
Marlus Cadanus da Costa via cfe-commits
cfe-commits at lists.llvm.org
Thu Jun 25 06:56:25 PDT 2026
================
@@ -0,0 +1,55 @@
+// RUN: %clang_cc1 -fsyntax-only -verify %s -triple x86_64-linux-gnu -std=c++11
+// RUN: %clang_cc1 -fsyntax-only -verify %s -triple x86_64-linux-gnu -std=c++11 -fexperimental-new-constant-interpreter
----------------
marlus wrote:
Done. Moved the uint16_t/BigStruct test case to the .c file and deleted offsetof-unsigned-index.cpp. There was no C++-specific logic in it.
https://github.com/llvm/llvm-project/pull/204139
More information about the cfe-commits
mailing list