From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id EE94A3858D20; Sat, 15 Apr 2023 15:51:00 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org EE94A3858D20 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1681573860; bh=fBGz4flvF+q8B9Xk2kw3yitrwQL970wsLS8z9KLKBTc=; h=From:To:Subject:Date:From; b=MQ1UP873k6GRUDN+lnlFxwLlf4eNHKcAP/czzQa2fv+0Tl4kGKfNtfilV+ZLP/ydy TMhXYSPT7ReKFX3ZSKEVdSs3ehCx1A+RgS0b02JlIhnLv3Y57A65sDJq4JVOoanUKo LIci0i9F1lYiIqB420KvPECB6P9zPeMICPuVAg58= From: "xry111 at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c/109526] New: Broken type name for anonymous struct containing a VLA member in diagnostic message Date: Sat, 15 Apr 2023 15:51:00 +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: xry111 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 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=3D109526 Bug ID: 109526 Summary: Broken type name for anonymous struct containing a VLA member in diagnostic message Product: gcc Version: 13.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: xry111 at gcc dot gnu.org Target Milestone: --- void test(__SIZE_TYPE__ len, char *x) { struct { char data[len]; } *p =3D x; } The diagnostic message is: : In function 'test': :6:12: warning: initialization of ' *' from incompatible poi= nter type 'char *' [-Wincompatible-pointer-types] 6 | } *p =3D x; | ^ "" does not make any sense to me.=