summaryrefslogtreecommitdiffstats
path: root/clang/test/SemaCXX/modules-ts.cppm
diff options
context:
space:
mode:
authorRichard Smith <richard-llvm@metafoo.co.uk>2017-10-09 23:42:09 +0000
committerRichard Smith <richard-llvm@metafoo.co.uk>2017-10-09 23:42:09 +0000
commitb87720b77aee65e30a6181e239cbf708f4d29259 (patch)
tree5c9c3dc2f06f6e6a741f4833e2458858a1f57ad7 /clang/test/SemaCXX/modules-ts.cppm
parent8b53f7ca6daa21ea4510c0d2b35bee7edade6b0e (diff)
downloadbcm5719-llvm-b87720b77aee65e30a6181e239cbf708f4d29259.tar.gz
bcm5719-llvm-b87720b77aee65e30a6181e239cbf708f4d29259.zip
[Modules TS] Module ownership semantics for redeclarations.
When declaring an entity in the "purview" of a module, it's never a redeclaration of an entity in the purview of a default module or in no module ("in the global module"). Don't consider those other declarations as possible redeclaration targets if they're not visible, and reject any cases where we pick a prior visible declaration that violates this rule. llvm-svn: 315251
Diffstat (limited to 'clang/test/SemaCXX/modules-ts.cppm')
-rw-r--r--clang/test/SemaCXX/modules-ts.cppm2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/test/SemaCXX/modules-ts.cppm b/clang/test/SemaCXX/modules-ts.cppm
index 065818c562a..f64a4c0ab41 100644
--- a/clang/test/SemaCXX/modules-ts.cppm
+++ b/clang/test/SemaCXX/modules-ts.cppm
@@ -14,7 +14,7 @@ export module foo;
#endif
static int m;
-#if TEST == 2 // FIXME: 'm' has internal linkage, so there should be no error here
+#if TEST == 2
// expected-error@-2 {{redefinition of '}}
// expected-note@-3 {{unguarded header; consider using #ifdef guards or #pragma once}}
// FIXME: We should drop the "header from" in this diagnostic.
OpenPOWER on IntegriCloud