From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 335CA3858D39; Sun, 4 Jun 2023 17:46:02 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 335CA3858D39 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1685900762; bh=gkLe12WqdRBtPRTpPkq9fNLh9x0yHn8r3BvGZZ6Bo2E=; h=From:To:Subject:Date:From; b=orBMA+qVESqvFGXjnbxmHaktRQAhnrnN+Llz3s2crfJ21mUK7G1PrjYYnjNlzyvO3 x7jcgt+PmFP6FAS2r1Jba6W88F5CzN1aBWxKLD6RBI6BGNPJdnEpq9omfO7VrA9SHE GcWX0g1sKHM5p26wAfQe0H3v0YvWWV6w6kHMlsCw= From: "fchelnokov at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/110114] New: ICE on calling overloaded function in case of incomplete argument type Date: Sun, 04 Jun 2023 17:46:01 +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.1.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: fchelnokov at gmail 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 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D110114 Bug ID: 110114 Summary: ICE on calling overloaded function in case of incomplete argument type Product: gcc Version: 13.1.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: fchelnokov at gmail dot com Target Milestone: --- This program struct A { int a,b; }; struct B; void foo(const A &) {} void foo(const B &) {} int main() { foo({.a=3D0}); } is accepted by Clang and MSVC, but GCC 13 crashes on it with the message: :11:8: internal compiler error: Segmentation fault 11 | foo({.a=3D0}); | ~~~^~~~~~~~ 0x1ce67fe internal_error(char const*, ...) ???:0 0x751149 build_new_function_call(tree_node*, vec**, int) ???:0 0x8eaa5c finish_call_expr(tree_node*, vec**, b= ool, bool, int) ???:0 0x89f99b c_parse_file() ???:0 0x98c2b9 c_common_parse_file() ???:0 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. Online demo: https://godbolt.org/z/z7KPGrWsz=