From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 35F513858292; Tue, 5 Jul 2022 18:46:11 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 35F513858292 From: "gscfq@t-online.de" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/106206] New: [12/13 Regression] ICE: canonical types differ for identical types 'int(...)' and 'int(...)' Date: Tue, 05 Jul 2022 18:46:11 +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: X-Bugzilla-Severity: normal X-Bugzilla-Who: gscfq@t-online.de 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 Jul 2022 18:46:11 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D106206 Bug ID: 106206 Summary: [12/13 Regression] ICE: canonical types differ for identical types 'int(...)' and 'int(...)' Product: gcc Version: 13.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: gscfq@t-online.de Target Milestone: --- Started between 20210627 and 20210704, with file g++.dg/abi/covariant3.C : (gcc configured with --enable-checking=3Dyes) $ gcc-11 -c covariant3.C -O2 -fprofile-arcs -fanalyzer $ $ gcc-13-20220703 -c covariant3.C -O2 -fprofile-arcs -fanalyzer during IPA pass: analyzer cc1plus: internal compiler error: canonical types differ for identical types 'int(...)' and 'int(...)' 0xa4d28c comptypes(tree_node*, tree_node*, int) ../../gcc/cp/typeck.cc:1560 0xa4c0a4 structural_comptypes ../../gcc/cp/typeck.cc:1463 0xa4d240 comptypes(tree_node*, tree_node*, int) ../../gcc/cp/typeck.cc:1553 0xa4c0a4 structural_comptypes ../../gcc/cp/typeck.cc:1463 0xa4d240 comptypes(tree_node*, tree_node*, int) ../../gcc/cp/typeck.cc:1553 0x7c8fe8 cxx_types_compatible_p(tree_node*, tree_node*) ../../gcc/cp/cp-objcp-common.cc:126 0xaf3842 c_fold_indirect_ref_for_warn ../../gcc/c-family/c-pretty-print.cc:1834 0xaf3b65 c_fold_indirect_ref_for_warn ../../gcc/c-family/c-pretty-print.cc:1902 0xaf3b65 c_fold_indirect_ref_for_warn ../../gcc/c-family/c-pretty-print.cc:1902 0xaf4e8c print_mem_ref ../../gcc/c-family/c-pretty-print.cc:1964 0x8491cc expr_to_string(tree_node*) ../../gcc/cp/error.cc:3289 0x849b8c cp_printer ../../gcc/cp/error.cc:4458 0x2179080 pp_format(pretty_printer*, text_info*) ../../gcc/pretty-print.cc:1475 0x151db3a ana::evdesc::event_desc::formatted_print(char const*, ...) const ../../gcc/analyzer/pending-diagnostic.cc:114 0x20e3b96 ana::warning_event::get_desc(bool) const ../../gcc/analyzer/checker-path.cc:1136 0x20e35a2 ana::checker_event::prepare_for_emission(ana::checker_path*, ana::pending_diagnostic*, diagnostic_event_id_t) ../../gcc/analyzer/checker-path.cc:237 0x2103d48 ana::checker_path::prepare_for_emission(ana::pending_diagnostic*) ../../gcc/analyzer/checker-path.h:652 0x2103d48 ana::diagnostic_manager::emit_saved_diagnostic(ana::exploded_graph const&, ana::saved_diagnostic const&) ../../gcc/analyzer/diagnostic-manager.cc:1396 0x2104861 ana::dedupe_winners::emit_best(ana::diagnostic_manager*, ana::exploded_graph const&) ../../gcc/analyzer/diagnostic-manager.cc:1296 0x2104861 ana::diagnostic_manager::emit_saved_diagnostics(ana::exploded_gra= ph const&) ../../gcc/analyzer/diagnostic-manager.cc:1348=