New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[cpp.import] Import directive is deleted at the end of translation phase 4 #3201
Comments
I think one of the purposes of [cpp.import] p.2 is to say that the import directive is entirely replaced by the same tokens, except for the mentioned changes (e.g. Or is it that because the |
Editorial teleconference: This area is in flux and likely to change next time. |
There are now clarifying notes in cpp.module:
and in cpp.import:
|
P1703 states that a line starting with the
import
preprocessing token is a preprocessing directive.Such a line is processed first by the preprocessor (in translation phase 4, in order to import macro definitions) and it should also be processed in translation phase 7 (in order to import declarations). However, because such a line is a preprocessing directive, it is removed at the end of translation phase 4.
Is there something that I am overlooking?
Thank you.
The text was updated successfully, but these errors were encountered: