From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id C83563858D1E; Wed, 8 Nov 2023 11:13:56 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org C83563858D1E DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1699442036; bh=5wnlRqipJ8a0K2gR+J4pKCI6rMkMC7WqQ5hUWb+Zjc4=; h=From:To:Subject:Date:In-Reply-To:References:From; b=YTHlocIzQG1VRvf9uGiQ8TFPFKEQmRL3Xx4eGuzPkhzZ2glqQV2q436OrQC7Payn6 0P0NjS6x1RJ0tXTpXDdhs8wJlO7E/Mtcb9vgPu69t2mtJAVLf2BkAxE1ZHdbF0STZc mhDMSfXLmMgkEkBRVPQ7pLw/DhFZMHIsBOl6ZBg8= From: "gprocida at google dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/111788] g++ DWARF for void foo(...) missing unspecified parameters DIE Date: Wed, 08 Nov 2023 11:13: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: 13.2.0 X-Bugzilla-Keywords: wrong-debug X-Bugzilla-Severity: normal X-Bugzilla-Who: gprocida at google dot com X-Bugzilla-Status: NEW 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 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D111788 --- Comment #4 from Giuliano Procida --- Also worth noting that while Clang gives virtual table entries (for struct = X) this type in DWARF: int(** _vptr.X)(...) GCC gives them this type: int(** _vptr$X)() The different member names are an unfortunate inconsistency. Clang is strictly better on the typing, stating that the virtual functions = take an unknown number of arguments. Perhaps even better would have been if the first argument had been specified as type X*. In any case, this is likely all cosmetic as debuggers have all the special knowledge needed.=