[Bug c++/98885] [modules] forward declaration of classes prevent them from being exported at the point of actual declaration

pilarlatiesa at gmail dot com gcc-bugzilla@gcc.gnu.org
Sat Jan 30 09:34:47 GMT 2021


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98885

--- Comment #8 from Pilar Latiesa <pilarlatiesa at gmail dot com> ---
(In reply to Nathan Sidwell from comment #7)

That works. Thanks so much.

When there are several partitions involved it is not entirely clear to me what
declarations are first seen by the compiler compared with the legacy textual
inclusion model, so I assume that the rule would be to annotate every forward
declaration of an exported entity with 'export'.


More information about the Gcc-bugs mailing list