tmp/tmpmwk0qf9a/{from.md → to.md}
RENAMED
|
@@ -113,15 +113,19 @@ global module.
|
|
| 113 |
is not introduced by any *module-declaration*. — *end note*]
|
| 114 |
|
| 115 |
A *module* is either a named module or the global module. A declaration
|
| 116 |
is *attached* to a module as follows:
|
| 117 |
|
| 118 |
-
- If the declaration
|
| 119 |
-
|
| 120 |
-
|
| 121 |
-
-
|
| 122 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 123 |
|
| 124 |
it is attached to the global module.
|
| 125 |
- Otherwise, the declaration is attached to the module in whose purview
|
| 126 |
it appears.
|
| 127 |
|
|
|
|
| 113 |
is not introduced by any *module-declaration*. — *end note*]
|
| 114 |
|
| 115 |
A *module* is either a named module or the global module. A declaration
|
| 116 |
is *attached* to a module as follows:
|
| 117 |
|
| 118 |
+
- If the declaration is a non-dependent friend declaration that
|
| 119 |
+
nominates a function with a *declarator-id* that is a *qualified-id*
|
| 120 |
+
or *template-id* or that nominates a class other than with an
|
| 121 |
+
*elaborated-type-specifier* with neither a *nested-name-specifier* nor
|
| 122 |
+
a *simple-template-id*, it is attached to the module to which the
|
| 123 |
+
friend is attached [[basic.link]].
|
| 124 |
+
- Otherwise, if the declaration
|
| 125 |
+
- is a *namespace-definition* with external linkage or
|
| 126 |
+
- appears within a *linkage-specification* [[dcl.link]]
|
| 127 |
|
| 128 |
it is attached to the global module.
|
| 129 |
- Otherwise, the declaration is attached to the module in whose purview
|
| 130 |
it appears.
|
| 131 |
|