[clang] [clang] Move the diagnostic of unexpected token after module name from phase 4 to phase 7 (PR #187846)

LLVM Continuous Integration via cfe-commits cfe-commits at lists.llvm.org
Fri Aug 21 10:00:23 PDT 2026


llvm-ci wrote:

LLVM Buildbot has detected a new failure on builder `llvm-clang-x86_64-sie-ubuntu-fast` running on `sie-linux-worker` while building `clang` at step 6 "test-build-unified-tree-check-all".

Full details are available at: https://lab.llvm.org/buildbot/#/builders/144/builds/62780

<details>
<summary>Here is the relevant piece of the build log for the reference</summary>

```
Step 6 (test-build-unified-tree-check-all) failure: test (failure)
******************** TEST 'Clang :: Modules/GH204633.cppm' FAILED ********************
Exit Code: 1

Command Output (stdout):
--
# RUN: at line 1
rm -rf /home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/build/tools/clang/test/Modules/Output/GH204633.cppm.tmp
# executed command: rm -rf /home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/build/tools/clang/test/Modules/Output/GH204633.cppm.tmp
# note: command had no output on stdout or stderr
# RUN: at line 2
split-file /home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/llvm-project/clang/test/Modules/GH204633.cppm /home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/build/tools/clang/test/Modules/Output/GH204633.cppm.tmp
# executed command: split-file /home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/llvm-project/clang/test/Modules/GH204633.cppm /home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/build/tools/clang/test/Modules/Output/GH204633.cppm.tmp
# note: command had no output on stdout or stderr
# RUN: at line 3
/home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/build/bin/clang -cc1 -internal-isystem /home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/build/bin/../lib/clang/include -nostdsysteminc -std=c++26 -triple x86_64-pc-win32 -fsyntax-only -fmodules    -fimplicit-module-maps -fmodules-cache-path=/home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/build/tools/clang/test/Modules/Output/GH204633.cppm.tmp    -fmodule-map-file=/home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/build/tools/clang/test/Modules/Output/GH204633.cppm.tmp/original.cppm -verify /home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/build/tools/clang/test/Modules/Output/GH204633.cppm.tmp/original.cppm
# executed command: /home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/build/bin/clang -cc1 -internal-isystem /home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/build/bin/../lib/clang/include -nostdsysteminc -std=c++26 -triple x86_64-pc-win32 -fsyntax-only -fmodules -fimplicit-module-maps -fmodules-cache-path=/home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/build/tools/clang/test/Modules/Output/GH204633.cppm.tmp -fmodule-map-file=/home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/build/tools/clang/test/Modules/Output/GH204633.cppm.tmp/original.cppm -verify /home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/build/tools/clang/test/Modules/Output/GH204633.cppm.tmp/original.cppm
# .---command stderr------------
# | error: 'expected-error' diagnostics expected but not seen: 
# |   File /home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/build/tools/clang/test/Modules/Output/GH204633.cppm.tmp/original.cppm Line 4 (directive at /home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/build/tools/clang/test/Modules/Output/GH204633.cppm.tmp/original.cppm:1): unexpected preprocessing token '{' after module name
# | error: 'expected-error' diagnostics seen but not expected: 
# |   File /home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/build/tools/clang/test/Modules/Output/GH204633.cppm.tmp/original.cppm Line 4: unexpected '{' after module name, only ';' and '[' (start of attribute specifier sequence) are allowed
# | 2 errors generated.
# `-----------------------------
# error: command failed with exit status: 1

--

********************


```

</details>

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


More information about the cfe-commits mailing list