Skip to content

Commit 122a892

Browse files
RedBeard0531zygoloid
authored andcommitted
[module.reach] Clarify that only TUs with an interface dependency may be incidentally reachable
I think this is the intent of that sentence. Another possible reading, and the one my rewording attempts to prevent, is that because it doesn't say that no other TUs may be reachable, any TU may be, and it is just giving an example of a specific likely case of incidental reachability. But if that is the intent, then we probably shouldn't have it in normative text. There is an existing issue in the wording in that http://eel.is/c++draft/module#import-10 defines "has an interface dependency" as a relationship between two TUs, but this uses it as a relationship between "point with the program" and a TU. This makes it ambiguous about whether TU imported later in a file may be reachable at an earlier point. I am not trying to resolve that ambiguity with this change.
1 parent 4d9bd0d commit 122a892

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

source/modules.tex

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -982,9 +982,9 @@
982982
\pnum
983983
All translation units that are necessarily reachable are
984984
\defnx{reachable}{reachable!translation unit}.
985-
It is unspecified whether additional translation units on which the
986-
point within the program has an interface dependency are considered reachable,
987-
and under what circumstances.%
985+
Additional translation units on which the
986+
point within the program has an interface dependency may be considered reachable,
987+
but it is unspecified which are and under what circumstances.%
988988
\footnote{Implementations are therefore not required to prevent the semantic
989989
effects of additional translation units involved in the compilation from being
990990
observed.}

0 commit comments

Comments
 (0)