[cfe-dev] Modules TS re-export support
Boris Kolpackov via cfe-dev
cfe-dev at lists.llvm.org
Tue Jun 13 10:36:12 PDT 2017
It seems the new module re-export syntax is not (yet) supported:
export module hello;
export import hello.core;
I get an error and see this in test/SemaCXX/modules-ts.cppm:
export import foo; // expected-error {{expected unqualified-id}}
export { import foo; } // expected-error {{expected unqualified-id}}
Is there perhaps an "old" way to achieve the same?
Also, when this is supported, will the re-exporting module (hello
in this case) contain a "shallow" reference to the imported module
(hello.core). That is, will one need to have a .pcm file for
hello.core available every time hello is imported? It seems this
is how both GCC and VC implemented it.
Boris
More information about the cfe-dev
mailing list