From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id C928A385115F; Tue, 6 Sep 2022 13:40:43 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org C928A385115F DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1662471643; bh=2wklJcxgzxnVWrcn6jwzgpnkKfUTNCGD09Rz3FNfsxA=; h=From:To:Subject:Date:From; b=CtrbN/iq4c9YUV1cHntye3FD7Iv0ax6NL9Fpb6SwBrIZmUDMx7cROpuQdkHLfSae6 7rKriW4tsPb5XYZgLL3MGUYVhk3Y3gRRUj0yEYszquCiULqo6Vzw8e/GwW/bt3lxhU +L2R2ZrmgbLRcVqBFNnWtz8ZYIPJqPg5avs2wuME= From: "redi at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/106848] New: ICE when compiling module interface file with -g: error: type variant differs by TYPE_MAX_VALUE Date: Tue, 06 Sep 2022 13:40:43 +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: 13.0 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: redi at gcc dot gnu.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 keywords bug_severity priority component assigned_to reporter blocked 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 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D106848 Bug ID: 106848 Summary: ICE when compiling module interface file with -g: error: type variant differs by TYPE_MAX_VALUE Product: gcc Version: 13.0 Status: UNCONFIRMED Keywords: ice-on-valid-code Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: redi at gcc dot gnu.org Blocks: 103524 Target Milestone: --- $ cat std.cc export module std; import ; Compiling the bits/stdc++.h works OK: $ gcc -c -std=3Dc++23 -fmodules-ts -x c++-system-header bits/stdc++.h And compiling the module file works without -g: $ ~/gcc/13/bin/gcc -c -std=3Dc++23 -fmodules-ts std.cc But with -g there's an ICE: $ ~/gcc/13/bin/gcc -c -std=3Dc++23 -fmodules-ts std.cc -g std.cc:3:24: error: type variant differs by TYPE_MAX_VALUE 3 | import ; | ^ unit-size align:32 warn_if_not_align:0 symtab:931886976 alias-set -1 canonical-type 0x7feb3950e690 precision:32 min max pointer_to_this reference_to_this > asm_written unsigned type_5 type_6 SI size unit-size align:32 warn_if_not_align:0 symtab:877031008 alias-set -1 canonical-ty= pe 0x7feb36b08bd0 precision:32 min max values > value readonly constant nonlocal VOID /home/jwakely/gcc/13/include/c++/13.0.0/bits/regex_scanner.h:48:7 align:1 warn_if_not_align:0 context initial chain > chain > value chain > value chain > value chain > value chain value chain >>>>= >> context chain > unit-size align:32 warn_if_not_align:0 symtab:931886976 alias-set -1 canonical-type 0x7feb3950e690 precision:32 min max pointer_to_this reference_to_this > readonly unsigned type_5 type_6 SI size unit-size align:32 warn_if_not_align:0 symtab:877078960 alias-set -1 canonical-ty= pe 0x7feb35f18540 precision:32 context reference_to_this > std.cc:3:24: internal compiler error: =E2=80=98verify_type=E2=80=99 failed 0x149aade verify_type(tree_node const*) /home/jwakely/src/gcc/gcc/gcc/tree.cc:14023 0xd936f3 gen_type_die_with_usage /home/jwakely/src/gcc/gcc/gcc/dwarf2out.cc:26117 0xd93a0b gen_type_die_with_usage /home/jwakely/src/gcc/gcc/gcc/dwarf2out.cc:26251 0xda82b3 gen_type_die /home/jwakely/src/gcc/gcc/gcc/dwarf2out.cc:26348 0xda82b3 gen_formal_types_die /home/jwakely/src/gcc/gcc/gcc/dwarf2out.cc:23083 0xd8cf96 gen_subprogram_die /home/jwakely/src/gcc/gcc/gcc/dwarf2out.cc:23927 0xd90919 gen_decl_die /home/jwakely/src/gcc/gcc/gcc/dwarf2out.cc:26964 0xd92bb5 gen_member_die /home/jwakely/src/gcc/gcc/gcc/dwarf2out.cc:25801 0xd92bb5 gen_struct_or_union_type_die /home/jwakely/src/gcc/gcc/gcc/dwarf2out.cc:25897 0xd92bb5 gen_tagged_type_die /home/jwakely/src/gcc/gcc/gcc/dwarf2out.cc:26098 0xd939d0 gen_tagged_type_die /home/jwakely/src/gcc/gcc/gcc/dwarf2out.cc:26052 0xd939d0 gen_type_die_with_usage /home/jwakely/src/gcc/gcc/gcc/dwarf2out.cc:26293 0xd9052b gen_type_die /home/jwakely/src/gcc/gcc/gcc/dwarf2out.cc:26348 0xd9052b gen_decl_die /home/jwakely/src/gcc/gcc/gcc/dwarf2out.cc:26987 0xd916db dwarf2out_decl /home/jwakely/src/gcc/gcc/gcc/dwarf2out.cc:27542 0xd919d8 dwarf2out_type_decl /home/jwakely/src/gcc/gcc/gcc/dwarf2out.cc:27260 0xd919d8 dwarf2out_type_decl /home/jwakely/src/gcc/gcc/gcc/dwarf2out.cc:27255 0x10b94e4 rest_of_type_compilation(tree_node*, int) /home/jwakely/src/gcc/gcc/gcc/passes.cc:339 0xaa7fc5 trees_in::read_class_def(tree_node*, tree_node*) /home/jwakely/src/gcc/gcc/gcc/cp/module.cc:12173 0xaa9b59 module_state::read_cluster(unsigned int) /home/jwakely/src/gcc/gcc/gcc/cp/module.cc:14957 Please submit a full bug report, with preprocessed source (by using -freport-bug). Please include the complete backtrace with any bug report. See for instructions. Referenced Bugs: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D103524 [Bug 103524] [meta-bug] modules issue=