[Bug c++/102341] [modules] "error: conflicting exporting declaration" for anything previously declared

redi at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Wed Sep 15 11:28:50 GMT 2021


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

Jonathan Wakely <redi at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever confirmed|0                           |1
   Last reconfirmed|                            |2021-09-15

--- Comment #3 from Jonathan Wakely <redi at gcc dot gnu.org> ---
(In reply to Jonathan Wakely from comment #2)
> This seems to make it impractical to create a module interface unit for any
> library that is currently defined in header files, such as libstdc++.

I can work around this by adding 'export' into the headers themselves (as a
macro that expands to nothing unless included from the module interface unit).


More information about the Gcc-bugs mailing list