================
@@ -35,9 +35,9 @@
// cwg2947: 23 tentatively ready 2026-03-06
//--- cwg2947_example1.cpp
-// #define DOT_BAR .bar
+// -D'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 preprocessing token '.' after module name;
expansion of 'DOT_BAR' is not part of module name}}
----------------
hubert-reinterpretcast wrote:
I don't think that this wording captures that the expansion not being part of
the module name is a consequence of the specification.
Maybe "expansion of 'DOT_BAR' must not extend the module name"?
https://github.com/llvm/llvm-project/pull/187748
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits