Modules TS re-export support

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Modules TS re-export support

Adam Cieszkiel via cfe-dev
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
_______________________________________________
cfe-dev mailing list
[hidden email]
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev
Loading...