[clang] [CLANG-CL] ignores wpadded (PR #130182)

Mikael Holmén via cfe-commits cfe-commits at lists.llvm.org
Wed Apr 2 22:55:13 PDT 2025


mikaelholmen wrote:

If I compile clang with clang (18.1.8) the new windows-Wpadded.cpp testcase fails for me like
```
error: 'expected-warning' diagnostics seen but not expected: 
  File /repo/clang/test/SemaCXX/windows-Wpadded.cpp Line 20: padding struct 'Derived' with 2 bits to align 'c'
1 error generated.
```
However, if I compile clang with gcc (13.3.0) and run the testcase it does not fail.

Am I the only one seeing this?

https://github.com/llvm/llvm-project/pull/130182


More information about the cfe-commits mailing list