From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 24A923861001; Wed, 24 Apr 2024 11:20:55 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 24A923861001 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1713957655; bh=b1eqCJEMfYZCRLe/DAPOXD0YS66u6BbOIidv07veuHI=; h=From:To:Subject:Date:From; b=hptIMLNFI4VC3yhYfAaB8Hyb7L1hYxWbxXJKjoRVmB1lZt7lFfBu44ANnee2OGNJA 955dlwJvCSu/+OZ3RW85Tz6hZ+apb9Cq9iuGPHY2qsm2QXFOCVCF+M+9XzH3olDMFI tBR/2S+X4hlF/D0c8OuVYNhu2K24UhQ/t5BagY6k= From: "jakub at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/114834] New: nontstring attribute vs. references Date: Wed, 24 Apr 2024 11:20:54 +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: 14.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: jakub 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=3D114834 Bug ID: 114834 Summary: nontstring attribute vs. references Product: gcc Version: 14.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: jakub at gcc dot gnu.org Target Milestone: --- We currently allow the nonstring attribute just on pointers and arrays of char/signed char/unsigned char. Shouldn't we allow it also on references to those as well? What about arrays/pointers of std::byte (aka enumeral type with unsigned ch= ar as underlying type)?=