From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 03BFF3858C27; Sun, 21 Mar 2021 15:28:27 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 03BFF3858C27 From: "unlvsur at live dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/99695] New: Cannot static compile with C++ module Date: Sun, 21 Mar 2021 15:28:26 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 11.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: unlvsur at live dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 21 Mar 2021 15:28:27 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D99695 Bug ID: 99695 Summary: Cannot static compile with C++ module Product: gcc Version: 11.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: unlvsur at live dot com Target Milestone: --- Hello.cc module; // legacy includes go here =E2=80=93 not part of this module import ; import ; export module Hello; // the module purview starts here // provide a function to users by exporting it export inline void SayHello(std::string_view name) { std::cout << "Hello " << name << "!\n"; } main.cc import Hello; int main() { SayHello("sdgsdg"); } g++ -o main hello.o main.o -Ofast -std=3Dc++20 -fmodules-ts -static D:/msys64/mingw64/lib/gcc/x86_64-w64-mingw32/11.0.1/../../../../x86_64-w64-= mingw32/bin/ld.exe: D:/msys64/mingw64/lib/gcc/x86_64-w64-mingw32/11.0.1/../../../../lib\libstdc= ++.a(cxx11-locale-inst.o):(.rdata$_ZTVNSt7__cxx118numpunctIcEE[_ZTVNSt7__cx= x118numpunctIcEE]+0x0): multiple definition of `vtable for std::__cxx11::numpunct'; main.o:main.cc:(.rdata+0x3a0): first defined here bunch of errors=