Namespaces without an explicit export were being mistakenly marked as module private.
This patch fixes the visibility as per [basic.namespace]p1 and adds a test case with previously rejected (yet valid) code.
Details
Details
Diff Detail
Diff Detail
Event Timeline
Comment Actions
- Don't assume that -fmodules-ts implies that we're in a TS module.
- Don't ignore private namespaces when calculating the ownership kind.
"because they're" -> "because they might be" -- this only applies to Modules TS modules, not to header modules.