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

            Bug ID: 105397
           Summary: Cannot export module initializer symbols with
                    `-fvisibility=hidden`
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: bugzilla.gcc at me dot benboeckel.net
  Target Milestone: ---

There is no way to decorate an `export module X;` with an
`__attribute__((visibility("default")))` such that it ends up visible in the
resulting shared library if `-fvisibility=hidden` is passed. I also tried
linker scripts with no luck.

Reply via email to