From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 689623851C3D; Wed, 23 Dec 2020 00:00:15 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 689623851C3D From: "unlvsur at live dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/98422] New: C++ 20 module ICE with lto Date: Wed, 23 Dec 2020 00:00:15 +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: Wed, 23 Dec 2020 00:00:15 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D98422 Bug ID: 98422 Summary: C++ 20 module ICE with lto 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: --- import hello; int main() { greeter("hello world"); } cqwrteur@Home-Server:~/wwwww/module$ g++ -c main.cc -Ofast -std=3Dc++20 -s = -flto -s -fmodules-ts main.cc:5:1: error: type variant differs by TYPE_MODE 5 | } | ^ constant 128> unit-size constant 16> align:8 warn_if_not_align:0 symtab:0 alias-set -1 canonical-type 0x7f54a6bd87e0 fields sizes-gimplified public unsigned DI size unit-size align:64 warn_if_not_align:0 symtab:0 alias-set -1 canonical-ty= pe 0x7f54a6bd4b28 pointer_to_this > used unsigned virtual DI /usr/local/include/c++/11.0.0/typeinfo:88:9 size unit-size align:64 warn_if_not_align:0 offset_align 128 offset bit-offset context chain used protected unsigned nonlocal decl_3 DI /usr/local/include/c++/11.0.0/typeinfo:174:17 size unit-size align:64 warn_if_not_align:0 offset_align 128 offset bit-offset context >> context pointer_to_this reference_to_this > constant 128> unit-size constant 16> align:8 warn_if_not_align:0 symtab:0 alias-set -1 canonical-type 0x7f54a6bd8888 fields sizes-gimplified public unsigned DI size unit-size align:64 warn_if_not_align:0 symtab:0 alias-set -1 canonical-ty= pe 0x7f54a6bd4b28 pointer_to_this > used unsigned virtual DI /usr/local/include/c++/11.0.0/typeinfo:88:9 size unit-size align:64 warn_if_not_align:0 offset_align 128 offset bit-offset context chain used protected unsigned nonlocal decl_3 DI /usr/local/include/c++/11.0.0/typeinfo:174:17 size unit-size align:64 warn_if_not_align:0 offset_align 128 offset bit-offset context >> context pointer_to_this reference_to_this > during IPA pass: *free_lang_data main.cc:5:1: internal compiler error: 'verify_type' failed 0x13937e5 verify_type(tree_node const*) ../../gcc/gcc/tree.c:14906 0x1396b33 free_lang_data ../../gcc/gcc/tree.c:6436 0x1396b33 execute ../../gcc/gcc/tree.c:6481 Please submit a full bug report, with preprocessed source if appropriate. Please include the complete backtrace with any bug report. See for instructions.=