Title
Deleted module directives
Status
tentatively ready
Section
15.5 [cpp.module]
Submitter
Yin Xinyu

Created on 2026-08-16.00:00:00 last changed yesterday

Messages

Date: 2026-09-03.23:06:47

Proposed resolution (approved by CWG 2026-09-01):

Change in 15.5 [cpp.module] paragraph 2 as follows:

The module and export (if it exists) preprocessing tokens of a pp-module, pp-global-module-fragment, or pp-private-module-fragment are replaced by the module-keyword and export-keyword preprocessing tokens respectively. [Note 1: This makes the line no longer a directive so it is not removed at the end of phase 4. —end note] ...
Date: 2026-08-16.00:00:00

(From submission #979.)

Preprocessing directives are deleted at the end of phase 4 (5.2 [lex.phases] bullet 1.4), but nothing is done for pp-global-module-fragment or pp-private-module-fragment (which are preprocessing directives per 15.1 [cpp.pre] paragraph 2) to prevent this deletion.

History
Date User Action Args
2026-09-03 23:06:47adminsetstatus: open -> tentatively ready
2026-08-23 08:02:22adminsetmessages: + msg8660
2026-08-16 00:00:00admincreate