Skip to content

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

Merged
yronglin merged 4 commits into
llvm:mainfrom
yronglin:check_next_pp_tok_after_module_name_v2
Aug 21, 2026
Merged

[clang] Move the diagnostic of unexpected token after module name from phase 4 to phase 7#187846
yronglin merged 4 commits into
llvm:mainfrom
yronglin:check_next_pp_tok_after_module_name_v2

Conversation

@yronglin

@yronglin yronglin commented Mar 21, 2026

Copy link
Copy Markdown
Contributor

The PR #107168 implement CWG2947. And clang checks next pp-token after module name in phase 4.

This PR move the check to phase 7, there are three main motivations:

  1. We already convert the module name pp-tokens sequence into a annot_module_name token, so for the following case, macro expansion will be disabled.
  2. In the original implementation, we need to look ahead a token even if we already hit an eod token, but in phase7, we don't need to look ahead a token.
  3. The original implementation checked and emit a diagnosis in phase 4, and then skipped these unexpected tokens in phase 7. Now we've merged them into one step and are able to get a diagnosis approximate as before.
// #define m(x) x
export module m
     (foo);                 // Before: unexpected preprocessing token '(' after module name .....
                              // After: unexpected '(' after module name ....

But in the following will be breaking current behavior:

// #define m(x) x
// #define LPAREN (
export module m
    LPAREN foo);     // Before: unexpected preprocessing token 'LPAREN' after module name .....
                              // After: unexpected '(' after module name ....

@yronglin
yronglin requested a review from Endilll as a code owner March 21, 2026 08:23
@llvmbot llvmbot added clang Clang issues not falling into any other category clang:frontend Language frontend issues, e.g. anything involving "Sema" clang:modules C++20 modules and Clang Header Modules labels Mar 21, 2026
@yronglin

Copy link
Copy Markdown
Contributor Author

I'm not sure it's the correct approach, feel free to comments!

@llvmbot

llvmbot commented Mar 21, 2026

Copy link
Copy Markdown
Member

@llvm/pr-subscribers-clang

@llvm/pr-subscribers-clang-modules

Author: None (yronglin)

Changes

The PR #107168 implement CWG2947. And clang checks next pp-token after module name in phase 4.

This PR move the check to phase 7, there are three main motivations:

  1. We already convert the module name pp-tokens sequence into a annot_module_name token, so for the following case, macro expansion will be disabled.
  2. In the original implementation, we need to look ahead a token even if we already hit eod, but in phase7, we don't need to look ahead a token.
  3. The original implementation checked and emit a diagnosis in phase 4, and then skipped these unexpected tokens in phase 7. Now we've merged them into one step and are able to get a more approximate diagnosis.
// #define m(x) x
export module m
     (foo);                 // Before: unexpected preprocessing token '(' after module name .....
                              // After: unexpected '(' after module name ....

But in the following will be breaking current behavior:

// #define m(x) x
// #define LPAREN (
export module m
    LPAREN foo);     // Before: unexpected preprocessing token 'LPAREN' after module name .....
                              // After: unexpected '(' after module name ....

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

9 Files Affected:

  • (modified) clang/docs/ReleaseNotes.rst (+1)
  • (modified) clang/include/clang/Basic/DiagnosticLexKinds.td (-3)
  • (modified) clang/include/clang/Basic/DiagnosticParseKinds.td (+3)
  • (modified) clang/lib/Lex/PPDirectives.cpp (-15)
  • (modified) clang/lib/Parse/Parser.cpp (+4-2)
  • (modified) clang/test/CXX/basic/basic.link/p3.cpp (+1-1)
  • (modified) clang/test/CXX/drs/cwg2947.cpp (+2-2)
  • (modified) clang/test/CXX/module/basic/basic.link/module-declaration.cpp (+1-1)
  • (modified) clang/test/CXX/module/cpp.pre/p1.cpp (+3-3)
diff --git a/clang/docs/ReleaseNotes.rst b/clang/docs/ReleaseNotes.rst
index b13171f7ecafc..9e2531e2c5645 100644
--- a/clang/docs/ReleaseNotes.rst
+++ b/clang/docs/ReleaseNotes.rst
@@ -339,6 +339,7 @@ Bug Fixes in This Version
 - Fixed a crash when normalizing constraints involving concept template parameters whose index coincided with non-concept template parameters in the same parameter mapping.
 - Fixed a crash caused by accessing dependent diagnostics of a non-dependent context.
 - Fixed a crash when substituting into a non-type template parameter that has a type containing an undeduced placeholder type.
+- Fixed a crash when module directive export module foo not following a semicolon and there are no rest pp-tokens in current module file. (#GH187771)
 
 Bug Fixes to Compiler Builtins
 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
diff --git a/clang/include/clang/Basic/DiagnosticLexKinds.td b/clang/include/clang/Basic/DiagnosticLexKinds.td
index 5eceeced311f2..ed448fdfb2011 100644
--- a/clang/include/clang/Basic/DiagnosticLexKinds.td
+++ b/clang/include/clang/Basic/DiagnosticLexKinds.td
@@ -1006,9 +1006,6 @@ def err_pp_module_name_is_macro : Error<
   "%select{module|partition}0 name component %1 cannot be a object-like macro">;
 def err_pp_module_expected_ident : Error<
   "expected %select{identifier after '.' in |}0module name">;
-def err_pp_unexpected_tok_after_module_name : Error<
-  "unexpected preprocessing token '%0' after module name, "
-  "only ';' and '[' (start of attribute specifier sequence) are allowed">;
 def warn_pp_extra_tokens_at_module_directive_eol
     : Warning<"extra tokens after semicolon in '%0' directive">,
       InGroup<ExtraTokens>;
diff --git a/clang/include/clang/Basic/DiagnosticParseKinds.td b/clang/include/clang/Basic/DiagnosticParseKinds.td
index 19edc7f7a3b23..42d2f20f8c8c3 100644
--- a/clang/include/clang/Basic/DiagnosticParseKinds.td
+++ b/clang/include/clang/Basic/DiagnosticParseKinds.td
@@ -1782,6 +1782,9 @@ def ext_bit_int : Extension<
 } // end of Parse Issue category.
 
 let CategoryName = "Modules Issue" in {
+def err_unexpected_tok_after_module_name : Error<
+  "unexpected '%0' after module name, only ';' and '[' (start of attribute "
+  "specifier sequence) are allowed">;
 def err_unexpected_module_or_import_decl : Error<
   "%select{module|import}0 declaration can only appear at the top level">;
 def err_attribute_not_module_attr : Error<
diff --git a/clang/lib/Lex/PPDirectives.cpp b/clang/lib/Lex/PPDirectives.cpp
index 09f0c3fe8c61e..2a1b2792ae548 100644
--- a/clang/lib/Lex/PPDirectives.cpp
+++ b/clang/lib/Lex/PPDirectives.cpp
@@ -4405,21 +4405,6 @@ void Preprocessor::HandleCXXModuleDirective(Token ModuleTok) {
     break;
   }
 
-  // Consume the pp-import-suffix and expand any macros in it now, if we're not
-  // at the semicolon already.
-  std::optional<Token> NextPPTok = DirToks.back();
-  if (DirToks.back().is(tok::eod)) {
-    NextPPTok = peekNextPPToken();
-    if (NextPPTok && NextPPTok->is(tok::raw_identifier))
-      LookUpIdentifierInfo(*NextPPTok);
-  }
-
-  // Only ';' and '[' are allowed after module name.
-  // We also check 'private' because the previous is not a module name.
-  if (!NextPPTok->isOneOf(tok::semi, tok::eod, tok::l_square, tok::kw_private))
-    Diag(*NextPPTok, diag::err_pp_unexpected_tok_after_module_name)
-        << getSpelling(*NextPPTok);
-
   if (!DirToks.back().isOneOf(tok::semi, tok::eod)) {
     // Consume the pp-import-suffix and expand any macros in it now. We'll add
     // it back into the token stream later.
diff --git a/clang/lib/Parse/Parser.cpp b/clang/lib/Parse/Parser.cpp
index 5d18414b1a746..61b64133d35d2 100644
--- a/clang/lib/Parse/Parser.cpp
+++ b/clang/lib/Parse/Parser.cpp
@@ -2375,9 +2375,11 @@ Parser::ParseModuleDecl(Sema::ModuleImportState &ImportState) {
   }
 
   // This should already diagnosed in phase 4, just skip unil semicolon.
-  if (!Tok.isOneOf(tok::semi, tok::l_square))
+  if (!Tok.isOneOf(tok::semi, tok::l_square)) {
+    Diag(Tok, diag::err_unexpected_tok_after_module_name)
+        << PP.getSpelling(Tok);
     SkipUntil(tok::semi, SkipUntilFlags::StopBeforeMatch);
-
+  }
   // We don't support any module attributes yet; just parse them and diagnose.
   ParsedAttributes Attrs(AttrFactory);
   MaybeParseCXX11Attributes(Attrs);
diff --git a/clang/test/CXX/basic/basic.link/p3.cpp b/clang/test/CXX/basic/basic.link/p3.cpp
index bc3622c7bbd64..0784a7d879d7d 100644
--- a/clang/test/CXX/basic/basic.link/p3.cpp
+++ b/clang/test/CXX/basic/basic.link/p3.cpp
@@ -14,7 +14,7 @@ constexpr int n = 123;
 
 export module m; // #1
 module y = {}; // expected-error {{multiple module declarations}}
-// expected-error@-1 {{unexpected preprocessing token '=' after module name, only ';' and '[' (start of attribute specifier sequence) are allowed}}
+// expected-error@-1 {{unexpected '=' after module name, only ';' and '[' (start of attribute specifier sequence) are allowed}}
 // expected-note@#1 {{previous module declaration}}
 
 ::import x = {};
diff --git a/clang/test/CXX/drs/cwg2947.cpp b/clang/test/CXX/drs/cwg2947.cpp
index dd66a2cfcfc4d..b932fca4a8175 100644
--- a/clang/test/CXX/drs/cwg2947.cpp
+++ b/clang/test/CXX/drs/cwg2947.cpp
@@ -37,7 +37,7 @@
 //--- cwg2947_example1.cpp
 // #define DOT_BAR .bar
 export module foo DOT_BAR; // error: expansion of DOT_BAR; does not begin with ; or [
-// expected-error@-1 {{unexpected preprocessing token '.' after module name, only ';' and '[' (start of attribute specifier sequence) are allowed}}
+// expected-error@-1 {{unexpected '.' after module name, only ';' and '[' (start of attribute specifier sequence) are allowed}}
 
 //--- cwg2947_example2.cpp
 export module M MOD_ATTR;        // OK
@@ -46,7 +46,7 @@ export module M MOD_ATTR;        // OK
 //--- cwg2947_example3.cpp
 export module a
   .b;                         // error: preprocessing token after pp-module-name is not ; or [
-// expected-error@-1 {{unexpected preprocessing token '.' after module name, only ';' and '[' (start of attribute specifier sequence) are allowed}}
+// expected-error@-1 {{unexpected '.' after module name, only ';' and '[' (start of attribute specifier sequence) are allowed}}
 
 //--- cwg2947_example4.cpp
 export module M [[
diff --git a/clang/test/CXX/module/basic/basic.link/module-declaration.cpp b/clang/test/CXX/module/basic/basic.link/module-declaration.cpp
index 52ba1d9f82f2f..b22fc87aa296c 100644
--- a/clang/test/CXX/module/basic/basic.link/module-declaration.cpp
+++ b/clang/test/CXX/module/basic/basic.link/module-declaration.cpp
@@ -47,7 +47,7 @@ export module x;
 
 //--- invalid_module_name.cppm
 export module z elderberry;
-// expected-error@-1 {{unexpected preprocessing token 'elderberry' after module name, only ';' and '[' (start of attribute specifier sequence) are allowed}}
+// expected-error@-1 {{unexpected 'elderberry' after module name, only ';' and '[' (start of attribute specifier sequence) are allowed}}
 
 //--- empty_attribute.cppm
 // expected-no-diagnostics
diff --git a/clang/test/CXX/module/cpp.pre/p1.cpp b/clang/test/CXX/module/cpp.pre/p1.cpp
index 989915004ff57..dc5a3c36d4139 100644
--- a/clang/test/CXX/module/cpp.pre/p1.cpp
+++ b/clang/test/CXX/module/cpp.pre/p1.cpp
@@ -153,7 +153,7 @@ export module m:n;
 
 //--- unexpected_character_in_pp_module_suffix.cpp
 export module m();
-// expected-error@-1 {{unexpected preprocessing token '(' after module name, only ';' and '[' (start of attribute specifier sequence) are allowed}}
+// expected-error@-1 {{unexpected '(' after module name, only ';' and '[' (start of attribute specifier sequence) are allowed}}
 
 //--- semi_in_same_line.cpp
 export module m // OK
@@ -189,13 +189,13 @@ module x;
 //--- func_like_macro.cpp
 // #define m(x) x
 export module m
-     (foo); // expected-error {{unexpected preprocessing token '(' after module name, only ';' and '[' (start of attribute specifier sequence) are allowed}}
+     (foo); // expected-error {{unexpected '(' after module name, only ';' and '[' (start of attribute specifier sequence) are allowed}}
 
 //--- lparen.cpp
 // #define m(x) x
 // #define LPAREN (
 export module m
-    LPAREN foo); // expected-error {{unexpected preprocessing token 'LPAREN' after module name, only ';' and '[' (start of attribute specifier sequence) are allowed}}
+    LPAREN foo); // expected-error {{unexpected '(' after module name, only ';' and '[' (start of attribute specifier sequence) are allowed}}
 
 //--- control_line.cpp
 #if 0 // #1

@yronglin yronglin changed the title [clang] Diag unexpected token after module name in phase 7 [clang] Move the diagnostic of unexpected token after module name from phase 4 to phase 7 Mar 21, 2026

@erichkeane erichkeane left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't have a good feel if this is the 'right' solution, but it seems reasonable to me. Hopefully someone with a better understanding of module parsing comes along.

@Bigcheese Bigcheese left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I believe this has the correct behavior and matches CWG2947. We do the macro expansion, then check the rules. I think the only issue is that we will no longer error with -E.

I have a minor preference for handling this with just -E as I model that as "stop after phase 4". Would fixing the crash be more complicated in that case? I do think this is an ok approach if needed.

Comment thread clang/lib/Parse/Parser.cpp Outdated
@yronglin
yronglin force-pushed the check_next_pp_tok_after_module_name_v2 branch from 716f4c4 to ed3aa52 Compare June 11, 2026 17:40
@yronglin

Copy link
Copy Markdown
Contributor Author

Thanks for the review!

I'm a little bit concern about the diagnostic message:

def err_unexpected_tok_after_module_name : Error<
  "unexpected '%0' after module name, only ';' and '[' (start of attribute "
  "specifier sequence) are allowed">;

I'm not sure it's clean enough.

@yronglin

Copy link
Copy Markdown
Contributor Author

Friendly ping~

@yronglin

Copy link
Copy Markdown
Contributor Author

@Bigcheese Ping~

@cor3ntin

Copy link
Copy Markdown
Contributor

Can you add -E tests?

@yronglin

Copy link
Copy Markdown
Contributor Author

Can you add -E tests?

Thanks for the review!, I'll add.

yronglin added 4 commits July 23, 2026 01:21
Signed-off-by: yronglin <yronglin777@gmail.com>
Signed-off-by: yronglin <yronglin777@gmail.com>
Signed-off-by: yronglin <yronglin777@gmail.com>
Signed-off-by: yronglin <yronglin777@gmail.com>
@yronglin
yronglin force-pushed the check_next_pp_tok_after_module_name_v2 branch from 0bb3a70 to eed99ec Compare July 23, 2026 09:19
@yronglin

Copy link
Copy Markdown
Contributor Author

@Bigcheese @cor3ntin Friendly ping~

@yronglin

Copy link
Copy Markdown
Contributor Author

Thanks a lot for your review!

@yronglin
yronglin merged commit 6dcfc17 into llvm:main Aug 21, 2026
13 checks passed
@llvm-ci

llvm-ci commented Aug 21, 2026

Copy link
Copy Markdown

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

Here is the relevant piece of the build log for the reference
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

--

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


@llvm-ci

llvm-ci commented Aug 21, 2026

Copy link
Copy Markdown

LLVM Buildbot has detected a new failure on builder openmp-offload-amdgpu-runtime-2 running on rocm-worker-hw-02 while building clang at step 3 "annotate".

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

Here is the relevant piece of the build log for the reference
Step 3 (annotate) failure: 'python ../llvm.src/offload/ci/openmp-offload-amdgpu-libc-runtime.py ...' (failure)
...
PASS: Clang :: Index/complete-objc-message-id.m (16447 of 26124)
PASS: Clang :: Index/complete-objc-message.m (16448 of 26124)
PASS: Clang :: Modules/GH170429.cpp (16449 of 26124)
PASS: Clang :: Modules/GH204632.cppm (16450 of 26124)
PASS: Clang :: Modules/autoload-subdirectory.cpp (16451 of 26124)
PASS: Clang :: Modules/available-is-better.cpp (16452 of 26124)
UNSUPPORTED: Clang :: Modules/compiler_builtins_aarch64.m (16453 of 26124)
UNSUPPORTED: Clang :: Modules/compiler_builtins_arm.m (16454 of 26124)
PASS: Clang :: Modules/align-val-t-merge.cpp (16455 of 26124)
PASS: Clang :: Modules/anon-linkage.cppm (16456 of 26124)
FAIL: Clang :: Modules/GH204633.cppm (16457 of 26124)
******************** TEST 'Clang :: Modules/GH204633.cppm' FAILED ********************
Exit Code: 1

Command Output (stdout):
--
# RUN: at line 1
rm -rf /home/botworker/builds/openmp-offload-amdgpu-runtime-2/build/llvm.build/tools/clang/test/Modules/Output/GH204633.cppm.tmp
# executed command: rm -rf /home/botworker/builds/openmp-offload-amdgpu-runtime-2/build/llvm.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/botworker/builds/openmp-offload-amdgpu-runtime-2/llvm.src/clang/test/Modules/GH204633.cppm /home/botworker/builds/openmp-offload-amdgpu-runtime-2/build/llvm.build/tools/clang/test/Modules/Output/GH204633.cppm.tmp
# executed command: split-file /home/botworker/builds/openmp-offload-amdgpu-runtime-2/llvm.src/clang/test/Modules/GH204633.cppm /home/botworker/builds/openmp-offload-amdgpu-runtime-2/build/llvm.build/tools/clang/test/Modules/Output/GH204633.cppm.tmp
# note: command had no output on stdout or stderr
# RUN: at line 3
/home/botworker/builds/openmp-offload-amdgpu-runtime-2/build/llvm.build/bin/clang -cc1 -internal-isystem /home/botworker/builds/openmp-offload-amdgpu-runtime-2/build/llvm.build/lib/clang/24/include -nostdsysteminc -std=c++26 -triple x86_64-pc-win32 -fsyntax-only -fmodules    -fimplicit-module-maps -fmodules-cache-path=/home/botworker/builds/openmp-offload-amdgpu-runtime-2/build/llvm.build/tools/clang/test/Modules/Output/GH204633.cppm.tmp    -fmodule-map-file=/home/botworker/builds/openmp-offload-amdgpu-runtime-2/build/llvm.build/tools/clang/test/Modules/Output/GH204633.cppm.tmp/original.cppm -verify /home/botworker/builds/openmp-offload-amdgpu-runtime-2/build/llvm.build/tools/clang/test/Modules/Output/GH204633.cppm.tmp/original.cppm
# executed command: /home/botworker/builds/openmp-offload-amdgpu-runtime-2/build/llvm.build/bin/clang -cc1 -internal-isystem /home/botworker/builds/openmp-offload-amdgpu-runtime-2/build/llvm.build/lib/clang/24/include -nostdsysteminc -std=c++26 -triple x86_64-pc-win32 -fsyntax-only -fmodules -fimplicit-module-maps -fmodules-cache-path=/home/botworker/builds/openmp-offload-amdgpu-runtime-2/build/llvm.build/tools/clang/test/Modules/Output/GH204633.cppm.tmp -fmodule-map-file=/home/botworker/builds/openmp-offload-amdgpu-runtime-2/build/llvm.build/tools/clang/test/Modules/Output/GH204633.cppm.tmp/original.cppm -verify /home/botworker/builds/openmp-offload-amdgpu-runtime-2/build/llvm.build/tools/clang/test/Modules/Output/GH204633.cppm.tmp/original.cppm
# .---command stderr------------
# | error: 'expected-error' diagnostics expected but not seen: 
# |   File /home/botworker/builds/openmp-offload-amdgpu-runtime-2/build/llvm.build/tools/clang/test/Modules/Output/GH204633.cppm.tmp/original.cppm Line 4 (directive at /home/botworker/builds/openmp-offload-amdgpu-runtime-2/build/llvm.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/botworker/builds/openmp-offload-amdgpu-runtime-2/build/llvm.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

--

********************
PASS: Clang :: Modules/GH207581.cpp (16458 of 26124)
PASS: Clang :: Misc/diag-mapping2.c (16459 of 26124)
PASS: Clang :: Misc/diag-null-bytes-in-line.cpp (16460 of 26124)
PASS: Clang :: Modules/at-import-in-framework-header.m (16461 of 26124)
PASS: Clang :: Modules/attr-unavailable.m (16462 of 26124)
PASS: Clang :: Misc/amdgcn.languageOptsOpenCL.cl (16463 of 26124)
PASS: Clang :: Misc/amdgcn.unsupported_core_3.1.cl (16464 of 26124)
UNSUPPORTED: Clang :: Modules/aarch64-sme-keywords.cppm (16465 of 26124)
PASS: Clang :: Modules/add-remove-private.m (16466 of 26124)
PASS: Clang :: Misc/diag-macro-backtrace2.c (16467 of 26124)
Step 9 (run check-clang) failure: run check-clang (failure)
...
PASS: Clang :: Index/complete-objc-message-id.m (16447 of 26124)
PASS: Clang :: Index/complete-objc-message.m (16448 of 26124)
PASS: Clang :: Modules/GH170429.cpp (16449 of 26124)
PASS: Clang :: Modules/GH204632.cppm (16450 of 26124)
PASS: Clang :: Modules/autoload-subdirectory.cpp (16451 of 26124)
PASS: Clang :: Modules/available-is-better.cpp (16452 of 26124)
UNSUPPORTED: Clang :: Modules/compiler_builtins_aarch64.m (16453 of 26124)
UNSUPPORTED: Clang :: Modules/compiler_builtins_arm.m (16454 of 26124)
PASS: Clang :: Modules/align-val-t-merge.cpp (16455 of 26124)
PASS: Clang :: Modules/anon-linkage.cppm (16456 of 26124)
FAIL: Clang :: Modules/GH204633.cppm (16457 of 26124)
******************** TEST 'Clang :: Modules/GH204633.cppm' FAILED ********************
Exit Code: 1

Command Output (stdout):
--
# RUN: at line 1
rm -rf /home/botworker/builds/openmp-offload-amdgpu-runtime-2/build/llvm.build/tools/clang/test/Modules/Output/GH204633.cppm.tmp
# executed command: rm -rf /home/botworker/builds/openmp-offload-amdgpu-runtime-2/build/llvm.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/botworker/builds/openmp-offload-amdgpu-runtime-2/llvm.src/clang/test/Modules/GH204633.cppm /home/botworker/builds/openmp-offload-amdgpu-runtime-2/build/llvm.build/tools/clang/test/Modules/Output/GH204633.cppm.tmp
# executed command: split-file /home/botworker/builds/openmp-offload-amdgpu-runtime-2/llvm.src/clang/test/Modules/GH204633.cppm /home/botworker/builds/openmp-offload-amdgpu-runtime-2/build/llvm.build/tools/clang/test/Modules/Output/GH204633.cppm.tmp
# note: command had no output on stdout or stderr
# RUN: at line 3
/home/botworker/builds/openmp-offload-amdgpu-runtime-2/build/llvm.build/bin/clang -cc1 -internal-isystem /home/botworker/builds/openmp-offload-amdgpu-runtime-2/build/llvm.build/lib/clang/24/include -nostdsysteminc -std=c++26 -triple x86_64-pc-win32 -fsyntax-only -fmodules    -fimplicit-module-maps -fmodules-cache-path=/home/botworker/builds/openmp-offload-amdgpu-runtime-2/build/llvm.build/tools/clang/test/Modules/Output/GH204633.cppm.tmp    -fmodule-map-file=/home/botworker/builds/openmp-offload-amdgpu-runtime-2/build/llvm.build/tools/clang/test/Modules/Output/GH204633.cppm.tmp/original.cppm -verify /home/botworker/builds/openmp-offload-amdgpu-runtime-2/build/llvm.build/tools/clang/test/Modules/Output/GH204633.cppm.tmp/original.cppm
# executed command: /home/botworker/builds/openmp-offload-amdgpu-runtime-2/build/llvm.build/bin/clang -cc1 -internal-isystem /home/botworker/builds/openmp-offload-amdgpu-runtime-2/build/llvm.build/lib/clang/24/include -nostdsysteminc -std=c++26 -triple x86_64-pc-win32 -fsyntax-only -fmodules -fimplicit-module-maps -fmodules-cache-path=/home/botworker/builds/openmp-offload-amdgpu-runtime-2/build/llvm.build/tools/clang/test/Modules/Output/GH204633.cppm.tmp -fmodule-map-file=/home/botworker/builds/openmp-offload-amdgpu-runtime-2/build/llvm.build/tools/clang/test/Modules/Output/GH204633.cppm.tmp/original.cppm -verify /home/botworker/builds/openmp-offload-amdgpu-runtime-2/build/llvm.build/tools/clang/test/Modules/Output/GH204633.cppm.tmp/original.cppm
# .---command stderr------------
# | error: 'expected-error' diagnostics expected but not seen: 
# |   File /home/botworker/builds/openmp-offload-amdgpu-runtime-2/build/llvm.build/tools/clang/test/Modules/Output/GH204633.cppm.tmp/original.cppm Line 4 (directive at /home/botworker/builds/openmp-offload-amdgpu-runtime-2/build/llvm.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/botworker/builds/openmp-offload-amdgpu-runtime-2/build/llvm.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

--

********************
PASS: Clang :: Modules/GH207581.cpp (16458 of 26124)
PASS: Clang :: Misc/diag-mapping2.c (16459 of 26124)
PASS: Clang :: Misc/diag-null-bytes-in-line.cpp (16460 of 26124)
PASS: Clang :: Modules/at-import-in-framework-header.m (16461 of 26124)
PASS: Clang :: Modules/attr-unavailable.m (16462 of 26124)
PASS: Clang :: Misc/amdgcn.languageOptsOpenCL.cl (16463 of 26124)
PASS: Clang :: Misc/amdgcn.unsupported_core_3.1.cl (16464 of 26124)
UNSUPPORTED: Clang :: Modules/aarch64-sme-keywords.cppm (16465 of 26124)
PASS: Clang :: Modules/add-remove-private.m (16466 of 26124)
PASS: Clang :: Misc/diag-macro-backtrace2.c (16467 of 26124)

@llvm-ci

llvm-ci commented Aug 21, 2026

Copy link
Copy Markdown

LLVM Buildbot has detected a new failure on builder llvm-clang-aarch64-darwin running on doug-worker-4 while building clang at step 6 "test-build-unified-tree-check-all".

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

Here is the relevant piece of the build log for the reference
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 /Volumes/RAMDisk/buildbot-root/aarch64-darwin/build/tools/clang/test/Modules/Output/GH204633.cppm.tmp
# executed command: rm -rf /Volumes/RAMDisk/buildbot-root/aarch64-darwin/build/tools/clang/test/Modules/Output/GH204633.cppm.tmp
# note: command had no output on stdout or stderr
# RUN: at line 2
split-file /Users/buildbot/buildbot-root/llvm-project/clang/test/Modules/GH204633.cppm /Volumes/RAMDisk/buildbot-root/aarch64-darwin/build/tools/clang/test/Modules/Output/GH204633.cppm.tmp
# executed command: split-file /Users/buildbot/buildbot-root/llvm-project/clang/test/Modules/GH204633.cppm /Volumes/RAMDisk/buildbot-root/aarch64-darwin/build/tools/clang/test/Modules/Output/GH204633.cppm.tmp
# note: command had no output on stdout or stderr
# RUN: at line 3
/Volumes/RAMDisk/buildbot-root/aarch64-darwin/build/bin/clang -cc1 -internal-isystem /Volumes/RAMDisk/buildbot-root/aarch64-darwin/build/lib/clang/24/include -nostdsysteminc -std=c++26 -triple x86_64-pc-win32 -fsyntax-only -fmodules    -fimplicit-module-maps -fmodules-cache-path=/Volumes/RAMDisk/buildbot-root/aarch64-darwin/build/tools/clang/test/Modules/Output/GH204633.cppm.tmp    -fmodule-map-file=/Volumes/RAMDisk/buildbot-root/aarch64-darwin/build/tools/clang/test/Modules/Output/GH204633.cppm.tmp/original.cppm -verify /Volumes/RAMDisk/buildbot-root/aarch64-darwin/build/tools/clang/test/Modules/Output/GH204633.cppm.tmp/original.cppm
# executed command: /Volumes/RAMDisk/buildbot-root/aarch64-darwin/build/bin/clang -cc1 -internal-isystem /Volumes/RAMDisk/buildbot-root/aarch64-darwin/build/lib/clang/24/include -nostdsysteminc -std=c++26 -triple x86_64-pc-win32 -fsyntax-only -fmodules -fimplicit-module-maps -fmodules-cache-path=/Volumes/RAMDisk/buildbot-root/aarch64-darwin/build/tools/clang/test/Modules/Output/GH204633.cppm.tmp -fmodule-map-file=/Volumes/RAMDisk/buildbot-root/aarch64-darwin/build/tools/clang/test/Modules/Output/GH204633.cppm.tmp/original.cppm -verify /Volumes/RAMDisk/buildbot-root/aarch64-darwin/build/tools/clang/test/Modules/Output/GH204633.cppm.tmp/original.cppm
# .---command stderr------------
# | error: 'expected-error' diagnostics expected but not seen: 
# |   File /Volumes/RAMDisk/buildbot-root/aarch64-darwin/build/tools/clang/test/Modules/Output/GH204633.cppm.tmp/original.cppm Line 4 (directive at /Volumes/RAMDisk/buildbot-root/aarch64-darwin/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 /Volumes/RAMDisk/buildbot-root/aarch64-darwin/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

--

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


@llvm-ci

llvm-ci commented Aug 21, 2026

Copy link
Copy Markdown

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

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

Here is the relevant piece of the build log for the reference
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-gcc-ubuntu/build/tools/clang/test/Modules/Output/GH204633.cppm.tmp
# executed command: rm -rf /home/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/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-gcc-ubuntu/llvm-project/clang/test/Modules/GH204633.cppm /home/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/build/tools/clang/test/Modules/Output/GH204633.cppm.tmp
# executed command: split-file /home/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/llvm-project/clang/test/Modules/GH204633.cppm /home/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/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-gcc-ubuntu/build/bin/clang -cc1 -internal-isystem /home/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/build/lib/clang/24/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-gcc-ubuntu/build/tools/clang/test/Modules/Output/GH204633.cppm.tmp    -fmodule-map-file=/home/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/build/tools/clang/test/Modules/Output/GH204633.cppm.tmp/original.cppm -verify /home/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/build/tools/clang/test/Modules/Output/GH204633.cppm.tmp/original.cppm
# executed command: /home/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/build/bin/clang -cc1 -internal-isystem /home/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/build/lib/clang/24/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-gcc-ubuntu/build/tools/clang/test/Modules/Output/GH204633.cppm.tmp -fmodule-map-file=/home/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/build/tools/clang/test/Modules/Output/GH204633.cppm.tmp/original.cppm -verify /home/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/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-gcc-ubuntu/build/tools/clang/test/Modules/Output/GH204633.cppm.tmp/original.cppm Line 4 (directive at /home/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/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-gcc-ubuntu/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

--

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


@llvm-ci

llvm-ci commented Aug 21, 2026

Copy link
Copy Markdown

LLVM Buildbot has detected a new failure on builder llvm-clang-x86_64-sie-win running on sie-win-worker while building clang at step 4 "clean-build-dir".

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

Here is the relevant piece of the build log for the reference
Step 4 (clean-build-dir) failure: Delete failed. (failure)
Step 7 (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 Z:\b\llvm-clang-x86_64-sie-win\build\tools\clang\test\Modules\Output\GH204633.cppm.tmp
# executed command: rm -rf 'Z:\b\llvm-clang-x86_64-sie-win\build\tools\clang\test\Modules\Output\GH204633.cppm.tmp'
# note: command had no output on stdout or stderr
# RUN: at line 2
split-file Z:\b\llvm-clang-x86_64-sie-win\llvm-project\clang\test\Modules\GH204633.cppm Z:\b\llvm-clang-x86_64-sie-win\build\tools\clang\test\Modules\Output\GH204633.cppm.tmp
# executed command: split-file 'Z:\b\llvm-clang-x86_64-sie-win\llvm-project\clang\test\Modules\GH204633.cppm' 'Z:\b\llvm-clang-x86_64-sie-win\build\tools\clang\test\Modules\Output\GH204633.cppm.tmp'
# note: command had no output on stdout or stderr
# RUN: at line 3
z:\b\llvm-clang-x86_64-sie-win\build\bin\clang.exe -cc1 -internal-isystem Z:\b\llvm-clang-x86_64-sie-win\build\bin\../lib/clang\include -nostdsysteminc -std=c++26 -triple x86_64-pc-win32 -fsyntax-only -fmodules    -fimplicit-module-maps -fmodules-cache-path=Z:\b\llvm-clang-x86_64-sie-win\build\tools\clang\test\Modules\Output\GH204633.cppm.tmp    -fmodule-map-file=Z:\b\llvm-clang-x86_64-sie-win\build\tools\clang\test\Modules\Output\GH204633.cppm.tmp/original.cppm -verify Z:\b\llvm-clang-x86_64-sie-win\build\tools\clang\test\Modules\Output\GH204633.cppm.tmp/original.cppm
# executed command: 'z:\b\llvm-clang-x86_64-sie-win\build\bin\clang.exe' -cc1 -internal-isystem 'Z:\b\llvm-clang-x86_64-sie-win\build\bin\../lib/clang\include' -nostdsysteminc -std=c++26 -triple x86_64-pc-win32 -fsyntax-only -fmodules -fimplicit-module-maps '-fmodules-cache-path=Z:\b\llvm-clang-x86_64-sie-win\build\tools\clang\test\Modules\Output\GH204633.cppm.tmp' '-fmodule-map-file=Z:\b\llvm-clang-x86_64-sie-win\build\tools\clang\test\Modules\Output\GH204633.cppm.tmp/original.cppm' -verify 'Z:\b\llvm-clang-x86_64-sie-win\build\tools\clang\test\Modules\Output\GH204633.cppm.tmp/original.cppm'
# .---command stderr------------
# | error: 'expected-error' diagnostics expected but not seen: 
# |   File Z:\b\llvm-clang-x86_64-sie-win\build\tools\clang\test\Modules\Output\GH204633.cppm.tmp/original.cppm Line 4 (directive at Z:\b\llvm-clang-x86_64-sie-win\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 Z:\b\llvm-clang-x86_64-sie-win\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

--

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


@llvm-ci

llvm-ci commented Aug 21, 2026

Copy link
Copy Markdown

LLVM Buildbot has detected a new failure on builder fuchsia-x86_64-linux running on fuchsia-debian-64-us-central1-a-1 while building clang at step 4 "annotate".

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

Here is the relevant piece of the build log for the reference
Step 4 (annotate) failure: 'python ../llvm-zorg/zorg/buildbot/builders/annotated/fuchsia-linux.py ...' (failure)
...
llvm-lit: /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/llvm/utils/lit/lit/llvm/config.py:569: note: using ld.lld: /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-3b4yieay/bin/ld.lld
llvm-lit: /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/llvm/utils/lit/lit/llvm/config.py:569: note: using lld-link: /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-3b4yieay/bin/lld-link
llvm-lit: /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/llvm/utils/lit/lit/llvm/config.py:569: note: using ld64.lld: /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-3b4yieay/bin/ld64.lld
llvm-lit: /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/llvm/utils/lit/lit/llvm/config.py:569: note: using wasm-ld: /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-3b4yieay/bin/wasm-ld
llvm-lit: /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/llvm/utils/lit/lit/llvm/config.py:569: note: using ld.lld: /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-3b4yieay/bin/ld.lld
llvm-lit: /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/llvm/utils/lit/lit/llvm/config.py:569: note: using lld-link: /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-3b4yieay/bin/lld-link
llvm-lit: /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/llvm/utils/lit/lit/llvm/config.py:569: note: using ld64.lld: /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-3b4yieay/bin/ld64.lld
llvm-lit: /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/llvm/utils/lit/lit/llvm/config.py:569: note: using wasm-ld: /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-3b4yieay/bin/wasm-ld
-- Testing: 25735 tests, 60 workers --
Testing:  0.. 10.. 20.. 30.. 40.. 50.. 60
FAIL: Clang :: Modules/GH204633.cppm (16449 of 25735)
******************** TEST 'Clang :: Modules/GH204633.cppm' FAILED ********************
Exit Code: 1

Command Output (stdout):
--
# RUN: at line 1
rm -rf /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-3b4yieay/tools/clang/test/Modules/Output/GH204633.cppm.tmp
# executed command: rm -rf /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-3b4yieay/tools/clang/test/Modules/Output/GH204633.cppm.tmp
# RUN: at line 2
split-file /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/clang/test/Modules/GH204633.cppm /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-3b4yieay/tools/clang/test/Modules/Output/GH204633.cppm.tmp
# executed command: split-file /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/clang/test/Modules/GH204633.cppm /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-3b4yieay/tools/clang/test/Modules/Output/GH204633.cppm.tmp
# RUN: at line 3
/var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-3b4yieay/bin/clang -cc1 -internal-isystem /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-3b4yieay/lib/clang/24/include -nostdsysteminc -std=c++26 -triple x86_64-pc-win32 -fsyntax-only -fmodules    -fimplicit-module-maps -fmodules-cache-path=/var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-3b4yieay/tools/clang/test/Modules/Output/GH204633.cppm.tmp    -fmodule-map-file=/var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-3b4yieay/tools/clang/test/Modules/Output/GH204633.cppm.tmp/original.cppm -verify /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-3b4yieay/tools/clang/test/Modules/Output/GH204633.cppm.tmp/original.cppm
# executed command: /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-3b4yieay/bin/clang -cc1 -internal-isystem /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-3b4yieay/lib/clang/24/include -nostdsysteminc -std=c++26 -triple x86_64-pc-win32 -fsyntax-only -fmodules -fimplicit-module-maps -fmodules-cache-path=/var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-3b4yieay/tools/clang/test/Modules/Output/GH204633.cppm.tmp -fmodule-map-file=/var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-3b4yieay/tools/clang/test/Modules/Output/GH204633.cppm.tmp/original.cppm -verify /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-3b4yieay/tools/clang/test/Modules/Output/GH204633.cppm.tmp/original.cppm
# .---command stderr------------
# | error: 'expected-error' diagnostics expected but not seen: 
# |   File /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-3b4yieay/tools/clang/test/Modules/Output/GH204633.cppm.tmp/original.cppm Line 4 (directive at /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-3b4yieay/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 /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-3b4yieay/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

--

********************
Testing:  0.. 10.. 20.. 30.. 40.. 50.. 60.. 70.. 80.. 90.. 
********************
Failed Tests (1):
  Clang :: Modules/GH204633.cppm


Testing Time: 135.50s

Total Discovered Tests: 54425
  Skipped          :     8 (0.01%)
  Unsupported      :  2077 (3.82%)
  Passed           : 52314 (96.12%)
Step 7 (check) failure: check (failure)
...
llvm-lit: /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/llvm/utils/lit/lit/llvm/config.py:569: note: using ld.lld: /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-3b4yieay/bin/ld.lld
llvm-lit: /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/llvm/utils/lit/lit/llvm/config.py:569: note: using lld-link: /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-3b4yieay/bin/lld-link
llvm-lit: /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/llvm/utils/lit/lit/llvm/config.py:569: note: using ld64.lld: /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-3b4yieay/bin/ld64.lld
llvm-lit: /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/llvm/utils/lit/lit/llvm/config.py:569: note: using wasm-ld: /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-3b4yieay/bin/wasm-ld
llvm-lit: /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/llvm/utils/lit/lit/llvm/config.py:569: note: using ld.lld: /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-3b4yieay/bin/ld.lld
llvm-lit: /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/llvm/utils/lit/lit/llvm/config.py:569: note: using lld-link: /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-3b4yieay/bin/lld-link
llvm-lit: /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/llvm/utils/lit/lit/llvm/config.py:569: note: using ld64.lld: /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-3b4yieay/bin/ld64.lld
llvm-lit: /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/llvm/utils/lit/lit/llvm/config.py:569: note: using wasm-ld: /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-3b4yieay/bin/wasm-ld
-- Testing: 25735 tests, 60 workers --
Testing:  0.. 10.. 20.. 30.. 40.. 50.. 60
FAIL: Clang :: Modules/GH204633.cppm (16449 of 25735)
******************** TEST 'Clang :: Modules/GH204633.cppm' FAILED ********************
Exit Code: 1

Command Output (stdout):
--
# RUN: at line 1
rm -rf /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-3b4yieay/tools/clang/test/Modules/Output/GH204633.cppm.tmp
# executed command: rm -rf /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-3b4yieay/tools/clang/test/Modules/Output/GH204633.cppm.tmp
# RUN: at line 2
split-file /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/clang/test/Modules/GH204633.cppm /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-3b4yieay/tools/clang/test/Modules/Output/GH204633.cppm.tmp
# executed command: split-file /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/clang/test/Modules/GH204633.cppm /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-3b4yieay/tools/clang/test/Modules/Output/GH204633.cppm.tmp
# RUN: at line 3
/var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-3b4yieay/bin/clang -cc1 -internal-isystem /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-3b4yieay/lib/clang/24/include -nostdsysteminc -std=c++26 -triple x86_64-pc-win32 -fsyntax-only -fmodules    -fimplicit-module-maps -fmodules-cache-path=/var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-3b4yieay/tools/clang/test/Modules/Output/GH204633.cppm.tmp    -fmodule-map-file=/var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-3b4yieay/tools/clang/test/Modules/Output/GH204633.cppm.tmp/original.cppm -verify /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-3b4yieay/tools/clang/test/Modules/Output/GH204633.cppm.tmp/original.cppm
# executed command: /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-3b4yieay/bin/clang -cc1 -internal-isystem /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-3b4yieay/lib/clang/24/include -nostdsysteminc -std=c++26 -triple x86_64-pc-win32 -fsyntax-only -fmodules -fimplicit-module-maps -fmodules-cache-path=/var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-3b4yieay/tools/clang/test/Modules/Output/GH204633.cppm.tmp -fmodule-map-file=/var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-3b4yieay/tools/clang/test/Modules/Output/GH204633.cppm.tmp/original.cppm -verify /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-3b4yieay/tools/clang/test/Modules/Output/GH204633.cppm.tmp/original.cppm
# .---command stderr------------
# | error: 'expected-error' diagnostics expected but not seen: 
# |   File /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-3b4yieay/tools/clang/test/Modules/Output/GH204633.cppm.tmp/original.cppm Line 4 (directive at /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-3b4yieay/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 /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-3b4yieay/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

--

********************
Testing:  0.. 10.. 20.. 30.. 40.. 50.. 60.. 70.. 80.. 90.. 
********************
Failed Tests (1):
  Clang :: Modules/GH204633.cppm


Testing Time: 135.50s

Total Discovered Tests: 54425
  Skipped          :     8 (0.01%)
  Unsupported      :  2077 (3.82%)
  Passed           : 52314 (96.12%)

@llvm-ci

llvm-ci commented Aug 21, 2026

Copy link
Copy Markdown

LLVM Buildbot has detected a new failure on builder clang-aarch64-quick running on linaro-clang-aarch64-quick while building clang at step 5 "ninja check 1".

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

Here is the relevant piece of the build log for the reference
Step 5 (ninja check 1) failure: stage 1 checked (failure)
******************** TEST 'Clang :: Modules/GH204633.cppm' FAILED ********************
Exit Code: 1

Command Output (stdout):
--
# RUN: at line 1
rm -rf /home/tcwg-buildbot/worker/clang-aarch64-quick/stage1/tools/clang/test/Modules/Output/GH204633.cppm.tmp
# executed command: rm -rf /home/tcwg-buildbot/worker/clang-aarch64-quick/stage1/tools/clang/test/Modules/Output/GH204633.cppm.tmp
# RUN: at line 2
split-file /home/tcwg-buildbot/worker/clang-aarch64-quick/llvm/clang/test/Modules/GH204633.cppm /home/tcwg-buildbot/worker/clang-aarch64-quick/stage1/tools/clang/test/Modules/Output/GH204633.cppm.tmp
# executed command: split-file /home/tcwg-buildbot/worker/clang-aarch64-quick/llvm/clang/test/Modules/GH204633.cppm /home/tcwg-buildbot/worker/clang-aarch64-quick/stage1/tools/clang/test/Modules/Output/GH204633.cppm.tmp
# RUN: at line 3
/home/tcwg-buildbot/worker/clang-aarch64-quick/stage1/bin/clang -cc1 -internal-isystem /home/tcwg-buildbot/worker/clang-aarch64-quick/stage1/lib/clang/24/include -nostdsysteminc -std=c++26 -triple x86_64-pc-win32 -fsyntax-only -fmodules    -fimplicit-module-maps -fmodules-cache-path=/home/tcwg-buildbot/worker/clang-aarch64-quick/stage1/tools/clang/test/Modules/Output/GH204633.cppm.tmp    -fmodule-map-file=/home/tcwg-buildbot/worker/clang-aarch64-quick/stage1/tools/clang/test/Modules/Output/GH204633.cppm.tmp/original.cppm -verify /home/tcwg-buildbot/worker/clang-aarch64-quick/stage1/tools/clang/test/Modules/Output/GH204633.cppm.tmp/original.cppm
# executed command: /home/tcwg-buildbot/worker/clang-aarch64-quick/stage1/bin/clang -cc1 -internal-isystem /home/tcwg-buildbot/worker/clang-aarch64-quick/stage1/lib/clang/24/include -nostdsysteminc -std=c++26 -triple x86_64-pc-win32 -fsyntax-only -fmodules -fimplicit-module-maps -fmodules-cache-path=/home/tcwg-buildbot/worker/clang-aarch64-quick/stage1/tools/clang/test/Modules/Output/GH204633.cppm.tmp -fmodule-map-file=/home/tcwg-buildbot/worker/clang-aarch64-quick/stage1/tools/clang/test/Modules/Output/GH204633.cppm.tmp/original.cppm -verify /home/tcwg-buildbot/worker/clang-aarch64-quick/stage1/tools/clang/test/Modules/Output/GH204633.cppm.tmp/original.cppm
# .---command stderr------------
# | error: 'expected-error' diagnostics expected but not seen: 
# |   File /home/tcwg-buildbot/worker/clang-aarch64-quick/stage1/tools/clang/test/Modules/Output/GH204633.cppm.tmp/original.cppm Line 4 (directive at /home/tcwg-buildbot/worker/clang-aarch64-quick/stage1/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/tcwg-buildbot/worker/clang-aarch64-quick/stage1/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

--

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


@llvm-ci

llvm-ci commented Aug 21, 2026

Copy link
Copy Markdown

LLVM Buildbot has detected a new failure on builder intel-sycl-gpu running on intel-sycl-gpu-01 while building clang at step 6 "test-build-unified-tree-check-all".

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

Here is the relevant piece of the build log for the reference
Step 6 (test-build-unified-tree-check-all) failure: 1200 seconds without output running [b'ninja', b'check-all'], attempting to kill
******************** TEST 'Clang :: Modules/GH204633.cppm' FAILED ********************
Exit Code: 1

Command Output (stdout):
--
# RUN: at line 1
rm -rf /home/test-user/llvm-buildbot-worker/intel-sycl-gpu/build/tools/clang/test/Modules/Output/GH204633.cppm.tmp
# executed command: rm -rf /home/test-user/llvm-buildbot-worker/intel-sycl-gpu/build/tools/clang/test/Modules/Output/GH204633.cppm.tmp
# RUN: at line 2
split-file /home/test-user/llvm-buildbot-worker/intel-sycl-gpu/llvm-project/clang/test/Modules/GH204633.cppm /home/test-user/llvm-buildbot-worker/intel-sycl-gpu/build/tools/clang/test/Modules/Output/GH204633.cppm.tmp
# executed command: split-file /home/test-user/llvm-buildbot-worker/intel-sycl-gpu/llvm-project/clang/test/Modules/GH204633.cppm /home/test-user/llvm-buildbot-worker/intel-sycl-gpu/build/tools/clang/test/Modules/Output/GH204633.cppm.tmp
# RUN: at line 3
/home/test-user/llvm-buildbot-worker/intel-sycl-gpu/build/bin/clang -cc1 -internal-isystem /home/test-user/llvm-buildbot-worker/intel-sycl-gpu/build/lib/clang/24/include -nostdsysteminc -std=c++26 -triple x86_64-pc-win32 -fsyntax-only -fmodules    -fimplicit-module-maps -fmodules-cache-path=/home/test-user/llvm-buildbot-worker/intel-sycl-gpu/build/tools/clang/test/Modules/Output/GH204633.cppm.tmp    -fmodule-map-file=/home/test-user/llvm-buildbot-worker/intel-sycl-gpu/build/tools/clang/test/Modules/Output/GH204633.cppm.tmp/original.cppm -verify /home/test-user/llvm-buildbot-worker/intel-sycl-gpu/build/tools/clang/test/Modules/Output/GH204633.cppm.tmp/original.cppm
# executed command: /home/test-user/llvm-buildbot-worker/intel-sycl-gpu/build/bin/clang -cc1 -internal-isystem /home/test-user/llvm-buildbot-worker/intel-sycl-gpu/build/lib/clang/24/include -nostdsysteminc -std=c++26 -triple x86_64-pc-win32 -fsyntax-only -fmodules -fimplicit-module-maps -fmodules-cache-path=/home/test-user/llvm-buildbot-worker/intel-sycl-gpu/build/tools/clang/test/Modules/Output/GH204633.cppm.tmp -fmodule-map-file=/home/test-user/llvm-buildbot-worker/intel-sycl-gpu/build/tools/clang/test/Modules/Output/GH204633.cppm.tmp/original.cppm -verify /home/test-user/llvm-buildbot-worker/intel-sycl-gpu/build/tools/clang/test/Modules/Output/GH204633.cppm.tmp/original.cppm
# .---command stderr------------
# | error: 'expected-error' diagnostics expected but not seen: 
# |   File /home/test-user/llvm-buildbot-worker/intel-sycl-gpu/build/tools/clang/test/Modules/Output/GH204633.cppm.tmp/original.cppm Line 4 (directive at /home/test-user/llvm-buildbot-worker/intel-sycl-gpu/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/test-user/llvm-buildbot-worker/intel-sycl-gpu/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

--

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


@llvm-ci

llvm-ci commented Aug 21, 2026

Copy link
Copy Markdown

LLVM Buildbot has detected a new failure on builder clang-m68k-linux-cross running on suse-gary-m68k-cross while building clang at step 5 "ninja check 1".

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

Here is the relevant piece of the build log for the reference
Step 5 (ninja check 1) failure: stage 1 checked (failure)
******************** TEST 'Clang :: Modules/GH204633.cppm' FAILED ********************
Exit Code: 1

Command Output (stdout):
--
# RUN: at line 1
rm -rf /var/lib/buildbot/workers/suse-gary-m68k-cross/clang-m68k-linux-cross/stage1/tools/clang/test/Modules/Output/GH204633.cppm.tmp
# executed command: rm -rf /var/lib/buildbot/workers/suse-gary-m68k-cross/clang-m68k-linux-cross/stage1/tools/clang/test/Modules/Output/GH204633.cppm.tmp
# RUN: at line 2
split-file /var/lib/buildbot/workers/suse-gary-m68k-cross/clang-m68k-linux-cross/llvm/clang/test/Modules/GH204633.cppm /var/lib/buildbot/workers/suse-gary-m68k-cross/clang-m68k-linux-cross/stage1/tools/clang/test/Modules/Output/GH204633.cppm.tmp
# executed command: split-file /var/lib/buildbot/workers/suse-gary-m68k-cross/clang-m68k-linux-cross/llvm/clang/test/Modules/GH204633.cppm /var/lib/buildbot/workers/suse-gary-m68k-cross/clang-m68k-linux-cross/stage1/tools/clang/test/Modules/Output/GH204633.cppm.tmp
# RUN: at line 3
/var/lib/buildbot/workers/suse-gary-m68k-cross/clang-m68k-linux-cross/stage1/bin/clang -cc1 -internal-isystem /var/lib/buildbot/workers/suse-gary-m68k-cross/clang-m68k-linux-cross/stage1/lib/clang/24/include -nostdsysteminc -std=c++26 -triple x86_64-pc-win32 -fsyntax-only -fmodules    -fimplicit-module-maps -fmodules-cache-path=/var/lib/buildbot/workers/suse-gary-m68k-cross/clang-m68k-linux-cross/stage1/tools/clang/test/Modules/Output/GH204633.cppm.tmp    -fmodule-map-file=/var/lib/buildbot/workers/suse-gary-m68k-cross/clang-m68k-linux-cross/stage1/tools/clang/test/Modules/Output/GH204633.cppm.tmp/original.cppm -verify /var/lib/buildbot/workers/suse-gary-m68k-cross/clang-m68k-linux-cross/stage1/tools/clang/test/Modules/Output/GH204633.cppm.tmp/original.cppm
# executed command: /var/lib/buildbot/workers/suse-gary-m68k-cross/clang-m68k-linux-cross/stage1/bin/clang -cc1 -internal-isystem /var/lib/buildbot/workers/suse-gary-m68k-cross/clang-m68k-linux-cross/stage1/lib/clang/24/include -nostdsysteminc -std=c++26 -triple x86_64-pc-win32 -fsyntax-only -fmodules -fimplicit-module-maps -fmodules-cache-path=/var/lib/buildbot/workers/suse-gary-m68k-cross/clang-m68k-linux-cross/stage1/tools/clang/test/Modules/Output/GH204633.cppm.tmp -fmodule-map-file=/var/lib/buildbot/workers/suse-gary-m68k-cross/clang-m68k-linux-cross/stage1/tools/clang/test/Modules/Output/GH204633.cppm.tmp/original.cppm -verify /var/lib/buildbot/workers/suse-gary-m68k-cross/clang-m68k-linux-cross/stage1/tools/clang/test/Modules/Output/GH204633.cppm.tmp/original.cppm
# .---command stderr------------
# | error: 'expected-error' diagnostics expected but not seen: 
# |   File /var/lib/buildbot/workers/suse-gary-m68k-cross/clang-m68k-linux-cross/stage1/tools/clang/test/Modules/Output/GH204633.cppm.tmp/original.cppm Line 4 (directive at /var/lib/buildbot/workers/suse-gary-m68k-cross/clang-m68k-linux-cross/stage1/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 /var/lib/buildbot/workers/suse-gary-m68k-cross/clang-m68k-linux-cross/stage1/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

--

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


@llvm-ci

llvm-ci commented Aug 21, 2026

Copy link
Copy Markdown

LLVM Buildbot has detected a new failure on builder llvm-clang-x86_64-gcc-ubuntu-no-asserts running on doug-worker-6 while building clang at step 6 "test-build-unified-tree-check-all".

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

Here is the relevant piece of the build log for the reference
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/gcc-no-asserts/build/tools/clang/test/Modules/Output/GH204633.cppm.tmp
# executed command: rm -rf /home/buildbot/buildbot-root/gcc-no-asserts/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/gcc-no-asserts/llvm-project/clang/test/Modules/GH204633.cppm /home/buildbot/buildbot-root/gcc-no-asserts/build/tools/clang/test/Modules/Output/GH204633.cppm.tmp
# executed command: split-file /home/buildbot/buildbot-root/gcc-no-asserts/llvm-project/clang/test/Modules/GH204633.cppm /home/buildbot/buildbot-root/gcc-no-asserts/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/gcc-no-asserts/build/bin/clang -cc1 -internal-isystem /home/buildbot/buildbot-root/gcc-no-asserts/build/lib/clang/24/include -nostdsysteminc -std=c++26 -triple x86_64-pc-win32 -fsyntax-only -fmodules    -fimplicit-module-maps -fmodules-cache-path=/home/buildbot/buildbot-root/gcc-no-asserts/build/tools/clang/test/Modules/Output/GH204633.cppm.tmp    -fmodule-map-file=/home/buildbot/buildbot-root/gcc-no-asserts/build/tools/clang/test/Modules/Output/GH204633.cppm.tmp/original.cppm -verify /home/buildbot/buildbot-root/gcc-no-asserts/build/tools/clang/test/Modules/Output/GH204633.cppm.tmp/original.cppm
# executed command: /home/buildbot/buildbot-root/gcc-no-asserts/build/bin/clang -cc1 -internal-isystem /home/buildbot/buildbot-root/gcc-no-asserts/build/lib/clang/24/include -nostdsysteminc -std=c++26 -triple x86_64-pc-win32 -fsyntax-only -fmodules -fimplicit-module-maps -fmodules-cache-path=/home/buildbot/buildbot-root/gcc-no-asserts/build/tools/clang/test/Modules/Output/GH204633.cppm.tmp -fmodule-map-file=/home/buildbot/buildbot-root/gcc-no-asserts/build/tools/clang/test/Modules/Output/GH204633.cppm.tmp/original.cppm -verify /home/buildbot/buildbot-root/gcc-no-asserts/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/gcc-no-asserts/build/tools/clang/test/Modules/Output/GH204633.cppm.tmp/original.cppm Line 4 (directive at /home/buildbot/buildbot-root/gcc-no-asserts/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/gcc-no-asserts/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

--

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


@yronglin

Copy link
Copy Markdown
Contributor Author

create a new PR to fix #217987.

yronglin added a commit that referenced this pull request Aug 21, 2026
…ule name (#217987)

This PR fix the diagnostic test of unexpected token after module name.
This diagnostic changed by
#187846.

Signed-off-by: yronglin <yronglin777@gmail.com>
llvm-upstreamsync Bot pushed a commit to qualcomm/cpullvm-toolchain that referenced this pull request Aug 21, 2026
…n after module name (#217987)

This PR fix the diagnostic test of unexpected token after module name.
This diagnostic changed by
llvm/llvm-project#187846.

Signed-off-by: yronglin <yronglin777@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

clang:frontend Language frontend issues, e.g. anything involving "Sema" clang:modules C++20 modules and Clang Header Modules clang Clang issues not falling into any other category

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants