Created on 2025-09-22.00:00:00 last changed 2 weeks ago
Proposed resolution (approved by CWG 2025-09-26):
Change in 15.6 [cpp.import] paragraph 2 as follows:
The preprocessing tokens after the import preprocessing token in the import control-line are processed just as in normal text (i.e., each identifier currently defined as a macro name is replaced by its replacement list of preprocessing tokens). [Note 1: An import directive matching the first two forms of a pp-import instructs the preprocessor to import macros from the header unit (10.3 [module.import]) denoted by the header-name, as described below. —end note] The point of macro import for the first two forms of pp-import is immediately after the new-line terminating the pp-import. The last form of pp-import does not have a point of macro import, and is only considered if, after macro replacement, the first two forms did not match, and does not have a point of macro import.
(From submission #767.)
Subclause 15.6 [cpp.import] paragraph 2 is unclear whether the matching of the last form happens before or after macro replacement.
History | |||
---|---|---|---|
Date | User | Action | Args |
2025-09-26 20:51:59 | admin | set | messages: + msg8128 |
2025-09-26 20:51:59 | admin | set | status: open -> tentatively ready |
2025-09-22 00:00:00 | admin | create |