From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id B6559388E83E; Tue, 5 Jan 2021 14:25:18 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org B6559388E83E From: "doko at debian dot org" To: gcc-bugs@gcc.gnu.org Subject: [Bug other/98533] New: [11 Regression] ICE: 'verify_type' failed Date: Tue, 05 Jan 2021 14:25:18 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: other X-Bugzilla-Version: 11.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: doko at debian dot org 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: Tue, 05 Jan 2021 14:25:18 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D98533 Bug ID: 98533 Summary: [11 Regression] ICE: 'verify_type' failed Product: gcc Version: 11.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: other Assignee: unassigned at gcc dot gnu.org Reporter: doko at debian dot org Target Milestone: --- seen with trunk 20210102 on x86_64-linux-gnu, compiler configured with --enable-checking=3Dyes,extra,rtl, building the actiona package. $ cat codelineedit.ii typedef long quintptr; template struct IsQEnumHelper { const T declval0; }; template ::Value> struct QMetaTypeIdQO= bject; template struct QMetaTypeId2 { enum { Defined =3D QMetaTypeIdQObject::Defined }; }; template struct MetaTypeDefinedHelper; template void qRegisterMetaType( char *, T *, typename MetaTypeDefinedHelper::IsBuiltIn>::defined =3D MetaTypeDefinedHelper::Defined); class ActionInstance { void isEnabled() const; template void evaluateListElement(int =3D [] {}); } newId =3D qRegisterMetaType("", reinterpret_cast(quintp= tr())) $ g++ -Wall -c -std=3Dc++11 -g -O0 codelineedit.ii codelineedit.ii: In instantiation of 'struct IsQEnumHelper': codelineedit.ii:5:43: required from 'struct QMetaTypeId2' codelineedit.ii:9:6: required by substitution of 'template void qRegisterMetaType(char*, T*, typename MetaTypeDefinedHelper::IsBuiltIn>::defined) [with T =3D ActionInstance]' codelineedit.ii:16:79: required from here codelineedit.ii:2:30: error: type variant has different 'TYPE_FIELDS' 2 | template struct IsQEnumHelper { const T declval0; }; | ^~~~~~~~~~~~~ constant 8> unit-size constant 1> align:8 warn_if_not_align:0 symtab:-981933840 alias-set -1 canonical-ty= pe 0x7f08c58ba3f0 fields unit-size align:8 warn_if_not_align:0 symtab:0 alias-set -1 canonical-type 0x7f08c58badc8 fields context full-name "struct ActionInstance::" n_parents=3D0 use_template=3D0 interface-unknown chain > private VOID codelineedit.ii:15:55 align:1 warn_if_not_align:0 context parms value length:1 elt:0 >>> full-name "template struct ActionInstance::" chain public private external QI codelineedit.ii:14:8 align:16 warn_if_not_align:0 context full-name "void ActionInstance::isEnabled() const" chain >> context full-name "class ActionInstance" X() X(constX&) this=3D(X&) n_parents=3D0 use_template=3D0 interface-unk= nown pointer_to_this chain > codelineedit.ii:2:30: error: first mismatch is field > QI size unit-size align:8 warn_if_not_align:0 symtab:0 alias-set -1 canonical-type 0x7f08c58ba7e0 method basetype arg-types chain >>> public private external QI codelineedit.ii:14:8 align:16 warn_if_not_align:0 context full-name "void ActionInstance::isEnabled() const" chain > codelineedit.ii:2:30: error: and field unit-size align:8 warn_if_not_align:0 symtab:0 alias-set -1 canonical-type 0x7f08c58badc8 fields result chain > context full-name "struct ActionInstance::" n_parents=3D0 use_template=3D0 interface-unknown chain > private VOID codelineedit.ii:15:55 align:1 warn_if_not_align:0 context parms value length:1 elt:0 >>> full-name "template struct ActionInstance::" chain > constant 8> unit-size constant 1> align:8 warn_if_not_align:0 symtab:-981933520 alias-set -1 canonical-ty= pe 0x7f08c58ba540 fields QI size unit-size align:8 warn_if_not_align:0 symtab:0 alias-set -1 canonical-type 0x7f08c58ba7e0 method basetype arg-types chain >>> public private external QI codelineedit.ii:14:8 align:16 warn_if_not_align:0 context full-name "void ActionInstance::isEnabled() const" chain private ignored decl_1 VOID codelineedit.ii:15:28 align:1 warn_if_not_align:0 context parms value length:1 elt:0 >>> full-name "template void ActionInstance::evaluateListElement(int)" chain >> context full-name "const class ActionInstance" X() X(constX&) this=3D(X&) n_parents=3D0 use_template=3D0 interface-unk= nown pointer_to_this > codelineedit.ii:2:30: internal compiler error: 'verify_type' failed 0x626011 verify_type(tree_node const*) ../../src/gcc/tree.c:14906 0x12a9537 gen_type_die_with_usage ../../src/gcc/dwarf2out.c:25504 0x12a94a6 gen_type_die ../../src/gcc/dwarf2out.c:25735 0x12a16c6 gen_decl_die ../../src/gcc/dwarf2out.c:26450 0x12b99aa gen_member_die ../../src/gcc/dwarf2out.c:25188 0x12b99aa gen_struct_or_union_type_die ../../src/gcc/dwarf2out.c:25284 0x12b99aa gen_tagged_type_die ../../src/gcc/dwarf2out.c:25485 0x12a96c5 gen_type_die_with_usage ../../src/gcc/dwarf2out.c:25680 0x12a94a6 gen_type_die ../../src/gcc/dwarf2out.c:25735 0x12a1854 gen_decl_die ../../src/gcc/dwarf2out.c:26374 0x1265c6d dwarf2out_decl ../../src/gcc/dwarf2out.c:26929 0x12b65fa dwarf2out_type_decl ../../src/gcc/dwarf2out.c:26647 0x12b65fa rest_of_type_compilation(tree_node*, int) ../../src/gcc/passes.c:339 0x136210e finish_struct_1(tree_node*) ../../src/gcc/cp/class.c:7524 0x14d0c68 instantiate_class_template_1 ../../src/gcc/cp/pt.c:12205 0x126e5bb instantiate_class_template(tree_node*) ../../src/gcc/cp/pt.c:12240 0x126e5bb complete_type(tree_node*) ../../src/gcc/cp/typeck.c:137 0x1328b87 complete_type(tree_node*) ../../src/gcc/tree.h:3337 0x1328b87 lookup_member(tree_node*, tree_node*, int, bool, int, access_failure_info*) ../../src/gcc/cp/search.c:1103 0x12ed3ed lookup_qualified_name(tree_node*, tree_node*, LOOK_want, bool) ../../src/gcc/cp/name-lookup.c:7241 Please submit a full bug report, with preprocessed source if appropriate.=