From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id DCB333858C27; Thu, 16 Dec 2021 14:54:56 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org DCB333858C27 From: "pinskia at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/96533] ICE with three-way comparison when error occurs in templated operator< overload and -Wunused-parameter Date: Thu, 16 Dec 2021 14:54:56 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 10.1.0 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: pinskia 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: Message-ID: In-Reply-To: References: 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: Thu, 16 Dec 2021 14:54:57 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D96533 --- Comment #8 from Andrew Pinski --- 0xccadfb do_warn_unused_parameter(tree_node*) /home/apinski/src/upstream-gcc/gcc/gcc/c-family/c-warn.c:2414 0xa74de1 finish_function(bool) /home/apinski/src/upstream-gcc/gcc/gcc/cp/decl.c:17816 0xba9b36 instantiate_body /home/apinski/src/upstream-gcc/gcc/gcc/cp/pt.c:26176 0xbaad6a instantiate_decl(tree_node*, bool, bool) /home/apinski/src/upstream-gcc/gcc/gcc/cp/pt.c:26450 0xa8586a maybe_instantiate_decl(tree_node*) /home/apinski/src/upstream-gcc/gcc/gcc/cp/decl2.c:5594 0xa86aac maybe_instantiate_decl(tree_node*) /home/apinski/src/upstream-gcc/gcc/gcc/cp/decl2.c:5830 0xa86aac mark_used(tree_node*, int) /home/apinski/src/upstream-gcc/gcc/gcc/cp/decl2.c:5856 0x9ce2ce build_over_call /home/apinski/src/upstream-gcc/gcc/gcc/cp/call.c:9819 0x9d4f59 build_new_op(op_location_t const&, tree_code, int, tree_node*, tree_node*, tree_node*, tree_node**, int) /home/apinski/src/upstream-gcc/gcc/gcc/cp/call.c:6685 0x9d5296 build_new_op(op_location_t const&, tree_code, int, tree_node*, tree_node*, tree_node*, tree_node**, int) /home/apinski/src/upstream-gcc/gcc/gcc/cp/call.c:6768 0xc1ead3 build_x_binary_op(op_location_t const&, tree_code, tree_node*, tree_code, tree_node*, tree_code, tree_node**, int) /home/apinski/src/upstream-gcc/gcc/gcc/cp/typeck.c:4480 0xb95898 tsubst_copy_and_build(tree_node*, tree_node*, int, tree_node*, boo= l, bool) /home/apinski/src/upstream-gcc/gcc/gcc/cp/pt.c:20074 0xba60ce tsubst(tree_node*, tree_node*, int, tree_node*) /home/apinski/src/upstream-gcc/gcc/gcc/cp/pt.c:16181 0xa97631 dump_template_bindings /home/apinski/src/upstream-gcc/gcc/gcc/cp/error.c:486 0xa90a8a dump_function_decl /home/apinski/src/upstream-gcc/gcc/gcc/cp/error.c:1806 0xa98dc4 decl_to_string /home/apinski/src/upstream-gcc/gcc/gcc/cp/error.c:3226 0xa98dc4 cp_printer /home/apinski/src/upstream-gcc/gcc/gcc/cp/error.c:4397 0x2118a6c pp_format(pretty_printer*, text_info*) /home/apinski/src/upstream-gcc/gcc/gcc/pretty-print.c:1475 0x211ac00 pp_format_verbatim(pretty_printer*, text_info*) /home/apinski/src/upstream-gcc/gcc/gcc/pretty-print.c:1536 0x211ac00 pp_verbatim(pretty_printer*, char const*, ...) /home/apinski/src/upstream-gcc/gcc/gcc/pretty-print.c:1790 Please submit a full bug report, with preprocessed source if appropriate. Please include the complete backtrace with any bug report. See for instructions.=