[clang] [ExprConstant] Treat `&*p` as not a dereference in C constant initializers (PR #201483)
via cfe-commits
cfe-commits at lists.llvm.org
Thu Jun 4 12:02:21 PDT 2026
github-actions[bot] wrote:
<!--PREMERGE ADVISOR COMMENT: Windows-->
# :window: Windows x64 Test Results
* 54107 tests passed
* 1289 tests skipped
* 1 test failed
## Failed Tests
(click on a test name to see its output)
### Clang
<details>
<summary>Clang.Modules/rebuild.m</summary>
```
Exit Code: 1
Command Output (stdout):
--
# RUN: at line 1
rm -rf C:\_work\llvm-project\llvm-project\build\tools\clang\test\Modules\Output\rebuild.m.tmp
# executed command: rm -rf 'C:\_work\llvm-project\llvm-project\build\tools\clang\test\Modules\Output\rebuild.m.tmp'
# note: command had no output on stdout or stderr
# RUN: at line 4
echo '@import Module;' | c:\_work\llvm-project\llvm-project\build\bin\clang.exe -cc1 -internal-isystem C:\_work\llvm-project\llvm-project\build\lib\clang\23\include -nostdsysteminc -fmodules -fimplicit-module-maps -fmodules-cache-path=C:\_work\llvm-project\llvm-project\build\tools\clang\test\Modules\Output\rebuild.m.tmp -fdisable-module-hash -fsyntax-only -F C:\_work\llvm-project\llvm-project\clang\test\Modules/Inputs -x objective-c -
# executed command: echo '@import Module;'
# note: command had no output on stdout or stderr
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\clang.exe' -cc1 -internal-isystem 'C:\_work\llvm-project\llvm-project\build\lib\clang\23\include' -nostdsysteminc -fmodules -fimplicit-module-maps '-fmodules-cache-path=C:\_work\llvm-project\llvm-project\build\tools\clang\test\Modules\Output\rebuild.m.tmp' -fdisable-module-hash -fsyntax-only -F 'C:\_work\llvm-project\llvm-project\clang\test\Modules/Inputs' -x objective-c -
# .---command stderr------------
# | While building module 'Module' imported from <stdin>:1:
# | In file included from <module-includes>:1:
# | C:\_work\llvm-project\llvm-project\clang\test\Modules/Inputs\Module.framework\Headers\Module.h:38:1: warning: umbrella header for module 'Module' does not include header 'NotInModule.h' [-Wincomplete-umbrella]
# | 1 warning generated.
# `-----------------------------
# RUN: at line 5
touch -m -a -t 201101010000 C:\_work\llvm-project\llvm-project\build\tools\clang\test\Modules\Output\rebuild.m.tmp/Module.pcm
# executed command: touch -m -a -t 201101010000 'C:\_work\llvm-project\llvm-project\build\tools\clang\test\Modules\Output\rebuild.m.tmp/Module.pcm'
# note: command had no output on stdout or stderr
# RUN: at line 6
cp C:\_work\llvm-project\llvm-project\build\tools\clang\test\Modules\Output\rebuild.m.tmp/Module.pcm C:\_work\llvm-project\llvm-project\build\tools\clang\test\Modules\Output\rebuild.m.tmp/Module.pcm.saved
# executed command: cp 'C:\_work\llvm-project\llvm-project\build\tools\clang\test\Modules\Output\rebuild.m.tmp/Module.pcm' 'C:\_work\llvm-project\llvm-project\build\tools\clang\test\Modules\Output\rebuild.m.tmp/Module.pcm.saved'
# note: command had no output on stdout or stderr
# RUN: at line 7
wc -c C:\_work\llvm-project\llvm-project\build\tools\clang\test\Modules\Output\rebuild.m.tmp/Module.pcm > C:\_work\llvm-project\llvm-project\build\tools\clang\test\Modules\Output\rebuild.m.tmp/Module.size.saved
# executed command: wc -c 'C:\_work\llvm-project\llvm-project\build\tools\clang\test\Modules\Output\rebuild.m.tmp/Module.pcm'
# note: command had no output on stdout or stderr
# RUN: at line 10
c:\_work\llvm-project\llvm-project\build\bin\clang.exe -cc1 -internal-isystem C:\_work\llvm-project\llvm-project\build\lib\clang\23\include -nostdsysteminc -fmodules -fimplicit-module-maps -fmodules-cache-path=C:\_work\llvm-project\llvm-project\build\tools\clang\test\Modules\Output\rebuild.m.tmp -fdisable-module-hash -fsyntax-only -F C:\_work\llvm-project\llvm-project\clang\test\Modules/Inputs C:\_work\llvm-project\llvm-project\clang\test\Modules\rebuild.m
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\clang.exe' -cc1 -internal-isystem 'C:\_work\llvm-project\llvm-project\build\lib\clang\23\include' -nostdsysteminc -fmodules -fimplicit-module-maps '-fmodules-cache-path=C:\_work\llvm-project\llvm-project\build\tools\clang\test\Modules\Output\rebuild.m.tmp' -fdisable-module-hash -fsyntax-only -F 'C:\_work\llvm-project\llvm-project\clang\test\Modules/Inputs' 'C:\_work\llvm-project\llvm-project\clang\test\Modules\rebuild.m'
# .---command stderr------------
# | C:\_work\llvm-project\llvm-project\clang\test\Modules/Inputs\DependsOnModule.framework\Modules\module.private.modulemap:1:33: warning: private submodule 'DependsOnModule.Private' in private module map, expected top-level module [-Wprivate-module]
# | 1 | explicit module DependsOnModule.Private {
# | | ^
# | C:\_work\llvm-project\llvm-project\clang\test\Modules/Inputs\DependsOnModule.framework\Modules\module.private.modulemap:1:33: note: rename 'DependsOnModule.Private' to ensure it can be found by name
# | 1 | explicit module DependsOnModule.Private {
# | | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~
# | | framework module DependsOnModule_Private
# | C:\_work\llvm-project\llvm-project\clang\test\Modules/Inputs\DependsOnModule.framework\Modules\module.private.modulemap:1:33: warning: private submodule 'DependsOnModule.Private' in private module map, expected top-level module [-Wprivate-module]
# | 1 | explicit module DependsOnModule.Private {
# | | ^
# | C:\_work\llvm-project\llvm-project\clang\test\Modules/Inputs\DependsOnModule.framework\Modules\module.private.modulemap:1:33: note: rename 'DependsOnModule.Private' to ensure it can be found by name
# | 1 | explicit module DependsOnModule.Private {
# | | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~
# | | framework module DependsOnModule_Private
# | 2 warnings generated.
# `-----------------------------
# RUN: at line 11
diff C:\_work\llvm-project\llvm-project\build\tools\clang\test\Modules\Output\rebuild.m.tmp/Module.pcm C:\_work\llvm-project\llvm-project\build\tools\clang\test\Modules\Output\rebuild.m.tmp/Module.pcm.saved
# executed command: diff 'C:\_work\llvm-project\llvm-project\build\tools\clang\test\Modules\Output\rebuild.m.tmp/Module.pcm' 'C:\_work\llvm-project\llvm-project\build\tools\clang\test\Modules\Output\rebuild.m.tmp/Module.pcm.saved'
# note: command had no output on stdout or stderr
# RUN: at line 12
cp C:\_work\llvm-project\llvm-project\build\tools\clang\test\Modules\Output\rebuild.m.tmp/DependsOnModule.pcm C:\_work\llvm-project\llvm-project\build\tools\clang\test\Modules\Output\rebuild.m.tmp/DependsOnModule.pcm.saved
# executed command: cp 'C:\_work\llvm-project\llvm-project\build\tools\clang\test\Modules\Output\rebuild.m.tmp/DependsOnModule.pcm' 'C:\_work\llvm-project\llvm-project\build\tools\clang\test\Modules\Output\rebuild.m.tmp/DependsOnModule.pcm.saved'
# note: command had no output on stdout or stderr
# RUN: at line 15
rm C:\_work\llvm-project\llvm-project\build\tools\clang\test\Modules\Output\rebuild.m.tmp/Module.pcm
# executed command: rm 'C:\_work\llvm-project\llvm-project\build\tools\clang\test\Modules\Output\rebuild.m.tmp/Module.pcm'
# note: command had no output on stdout or stderr
# RUN: at line 16
echo '@import Module;' | c:\_work\llvm-project\llvm-project\build\bin\clang.exe -cc1 -internal-isystem C:\_work\llvm-project\llvm-project\build\lib\clang\23\include -nostdsysteminc -fmodules -fimplicit-module-maps -fmodules-cache-path=C:\_work\llvm-project\llvm-project\build\tools\clang\test\Modules\Output\rebuild.m.tmp -fdisable-module-hash -fsyntax-only -F C:\_work\llvm-project\llvm-project\clang\test\Modules/Inputs -x objective-c -
# executed command: echo '@import Module;'
# note: command had no output on stdout or stderr
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\clang.exe' -cc1 -internal-isystem 'C:\_work\llvm-project\llvm-project\build\lib\clang\23\include' -nostdsysteminc -fmodules -fimplicit-module-maps '-fmodules-cache-path=C:\_work\llvm-project\llvm-project\build\tools\clang\test\Modules\Output\rebuild.m.tmp' -fdisable-module-hash -fsyntax-only -F 'C:\_work\llvm-project\llvm-project\clang\test\Modules/Inputs' -x objective-c -
# .---command stderr------------
# | While building module 'Module' imported from <stdin>:1:
# | In file included from <module-includes>:1:
# | C:\_work\llvm-project\llvm-project\clang\test\Modules/Inputs\Module.framework\Headers\Module.h:38:1: warning: umbrella header for module 'Module' does not include header 'NotInModule.h' [-Wincomplete-umbrella]
# | 1 warning generated.
# `-----------------------------
# RUN: at line 17
touch -m -a -t 201101010000 C:\_work\llvm-project\llvm-project\build\tools\clang\test\Modules\Output\rebuild.m.tmp/Module.pcm
# executed command: touch -m -a -t 201101010000 'C:\_work\llvm-project\llvm-project\build\tools\clang\test\Modules\Output\rebuild.m.tmp/Module.pcm'
# note: command had no output on stdout or stderr
# RUN: at line 18
wc -c C:\_work\llvm-project\llvm-project\build\tools\clang\test\Modules\Output\rebuild.m.tmp/Module.pcm > C:\_work\llvm-project\llvm-project\build\tools\clang\test\Modules\Output\rebuild.m.tmp/Module.size
# executed command: wc -c 'C:\_work\llvm-project\llvm-project\build\tools\clang\test\Modules\Output\rebuild.m.tmp/Module.pcm'
# note: command had no output on stdout or stderr
# RUN: at line 19
diff C:\_work\llvm-project\llvm-project\build\tools\clang\test\Modules\Output\rebuild.m.tmp/Module.size C:\_work\llvm-project\llvm-project\build\tools\clang\test\Modules\Output\rebuild.m.tmp/Module.size.saved
# executed command: diff 'C:\_work\llvm-project\llvm-project\build\tools\clang\test\Modules\Output\rebuild.m.tmp/Module.size' 'C:\_work\llvm-project\llvm-project\build\tools\clang\test\Modules\Output\rebuild.m.tmp/Module.size.saved'
# note: command had no output on stdout or stderr
# RUN: at line 20
cp C:\_work\llvm-project\llvm-project\build\tools\clang\test\Modules\Output\rebuild.m.tmp/Module.pcm C:\_work\llvm-project\llvm-project\build\tools\clang\test\Modules\Output\rebuild.m.tmp/Module.pcm.saved.2
# executed command: cp 'C:\_work\llvm-project\llvm-project\build\tools\clang\test\Modules\Output\rebuild.m.tmp/Module.pcm' 'C:\_work\llvm-project\llvm-project\build\tools\clang\test\Modules\Output\rebuild.m.tmp/Module.pcm.saved.2'
# note: command had no output on stdout or stderr
# RUN: at line 23
c:\_work\llvm-project\llvm-project\build\bin\clang.exe -cc1 -internal-isystem C:\_work\llvm-project\llvm-project\build\lib\clang\23\include -nostdsysteminc -fmodules -fimplicit-module-maps -fmodules-cache-path=C:\_work\llvm-project\llvm-project\build\tools\clang\test\Modules\Output\rebuild.m.tmp -fdisable-module-hash -fsyntax-only -F C:\_work\llvm-project\llvm-project\clang\test\Modules/Inputs C:\_work\llvm-project\llvm-project\clang\test\Modules\rebuild.m
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\clang.exe' -cc1 -internal-isystem 'C:\_work\llvm-project\llvm-project\build\lib\clang\23\include' -nostdsysteminc -fmodules -fimplicit-module-maps '-fmodules-cache-path=C:\_work\llvm-project\llvm-project\build\tools\clang\test\Modules\Output\rebuild.m.tmp' -fdisable-module-hash -fsyntax-only -F 'C:\_work\llvm-project\llvm-project\clang\test\Modules/Inputs' 'C:\_work\llvm-project\llvm-project\clang\test\Modules\rebuild.m'
# .---command stderr------------
# | C:\_work\llvm-project\llvm-project\clang\test\Modules/Inputs\DependsOnModule.framework\Modules\module.private.modulemap:1:33: warning: private submodule 'DependsOnModule.Private' in private module map, expected top-level module [-Wprivate-module]
# | 1 | explicit module DependsOnModule.Private {
# | | ^
# | C:\_work\llvm-project\llvm-project\clang\test\Modules/Inputs\DependsOnModule.framework\Modules\module.private.modulemap:1:33: note: rename 'DependsOnModule.Private' to ensure it can be found by name
# | 1 | explicit module DependsOnModule.Private {
# | | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~
# | | framework module DependsOnModule_Private
# | C:\_work\llvm-project\llvm-project\clang\test\Modules/Inputs\DependsOnModule.framework\Modules\module.private.modulemap:1:33: warning: private submodule 'DependsOnModule.Private' in private module map, expected top-level module [-Wprivate-module]
# | 1 | explicit module DependsOnModule.Private {
# | | ^
# | C:\_work\llvm-project\llvm-project\clang\test\Modules/Inputs\DependsOnModule.framework\Modules\module.private.modulemap:1:33: note: rename 'DependsOnModule.Private' to ensure it can be found by name
# | 1 | explicit module DependsOnModule.Private {
# | | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~
# | | framework module DependsOnModule_Private
# | 2 warnings generated.
# `-----------------------------
# RUN: at line 24
diff C:\_work\llvm-project\llvm-project\build\tools\clang\test\Modules\Output\rebuild.m.tmp/Module.pcm C:\_work\llvm-project\llvm-project\build\tools\clang\test\Modules\Output\rebuild.m.tmp/Module.pcm.saved.2
# executed command: diff 'C:\_work\llvm-project\llvm-project\build\tools\clang\test\Modules\Output\rebuild.m.tmp/Module.pcm' 'C:\_work\llvm-project\llvm-project\build\tools\clang\test\Modules\Output\rebuild.m.tmp/Module.pcm.saved.2'
# note: command had no output on stdout or stderr
# RUN: at line 25
diff C:\_work\llvm-project\llvm-project\build\tools\clang\test\Modules\Output\rebuild.m.tmp/DependsOnModule.pcm C:\_work\llvm-project\llvm-project\build\tools\clang\test\Modules\Output\rebuild.m.tmp/DependsOnModule.pcm.saved
# executed command: diff 'C:\_work\llvm-project\llvm-project\build\tools\clang\test\Modules\Output\rebuild.m.tmp/DependsOnModule.pcm' 'C:\_work\llvm-project\llvm-project\build\tools\clang\test\Modules\Output\rebuild.m.tmp/DependsOnModule.pcm.saved'
# .---command stdout------------
# | --- C:\_work\llvm-project\llvm-project\build\tools\clang\test\Modules\Output\rebuild.m.tmp/DependsOnModule.pcm
# | +++ C:\_work\llvm-project\llvm-project\build\tools\clang\test\Modules\Output\rebuild.m.tmp/DependsOnModule.pcm.saved
# | @@ -983,9 +983,9 @@
# | \xa7P
# | \xcaa
# | \xa60
# | \xbfP
# | \xb3
# | \xa7P
# `-----------------------------
# .---command stderr------------
# | Traceback (most recent call last):
# | File "C:\_work\llvm-project\llvm-project\llvm\utils\lit\lit\builtin_commands\diff.py", line 63, in compareTwoFiles
# | return compareTwoTextFiles(
# | ^^^^^^^^^^^^^^^^^^^^
# | File "C:\_work\llvm-project\llvm-project\llvm\utils\lit\lit\builtin_commands\diff.py", line 95, in compareTwoTextFiles
# | line = line_bin.decode(encoding=encoding)
# | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
# | File "c:\python312\Lib\encodings\cp1252.py", line 15, in decode
# | return codecs.charmap_decode(input,errors,decoding_table)
# | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
# | UnicodeDecodeError: 'charmap' codec can't decode byte 0x90 in position 44: character maps to <undefined>
# | decoding with 'cp1252' codec failed
# |
# | During handling of the above exception, another exception occurred:
# |
# | Traceback (most recent call last):
# | File "C:\_work\llvm-project\llvm-project\llvm\utils\lit\lit\builtin_commands\diff.py", line 68, in compareTwoFiles
# | return compareTwoTextFiles(flags, filepaths, filelines, "utf-8")
# | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
# | File "C:\_work\llvm-project\llvm-project\llvm\utils\lit\lit\builtin_commands\diff.py", line 95, in compareTwoTextFiles
# | line = line_bin.decode(encoding=encoding)
# | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
# | UnicodeDecodeError: 'utf-8' codec can't decode byte 0xa7 in position 8: invalid start byte
# |
# | During handling of the above exception, another exception occurred:
# |
# | Traceback (most recent call last):
# | File "C:\_work\llvm-project\llvm-project\llvm\utils\lit\lit\builtin_commands\diff.py", line 298, in <module>
# | main(sys.argv)
# | File "C:\_work\llvm-project\llvm-project\llvm\utils\lit\lit\builtin_commands\diff.py", line 286, in main
# | exitCode = compareTwoFiles(flags, filepaths)
# | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
# | File "C:\_work\llvm-project\llvm-project\llvm\utils\lit\lit\builtin_commands\diff.py", line 70, in compareTwoFiles
# | return compareTwoBinaryFiles(flags, filepaths, filelines)
# | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
# | File "C:\_work\llvm-project\llvm-project\llvm\utils\lit\lit\builtin_commands\diff.py", line 85, in compareTwoBinaryFiles
# | sys.stdout.write(diff.decode(errors="backslashreplace"))
# | File "c:\python312\Lib\encodings\cp1252.py", line 19, in encode
# | return codecs.charmap_encode(input,self.errors,encoding_table)[0]
# | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
# | UnicodeEncodeError: 'charmap' codec can't encode character '\u502d' in position 41: character maps to <undefined>
# `-----------------------------
# error: command failed with exit status: 1
--
```
</details>
If these failures are unrelated to your changes (for example tests are broken or flaky at HEAD), please open an issue at https://github.com/llvm/llvm-project/issues and add the `infrastructure` label.
https://github.com/llvm/llvm-project/pull/201483
More information about the cfe-commits
mailing list