From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 761453858C74; Fri, 1 Mar 2024 18:42:26 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 761453858C74 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1709318546; bh=MySk+TK+iwHpMTgSMHw/yu5BGV4BBfi6+i3aGe8zs4E=; h=From:To:Subject:Date:In-Reply-To:References:From; b=qRs1aPLP5o7Yrup7IEKvT5ghpLD4EDETsujkupcZe4gd0wrWhkvxQ9vCHc8KeUqb5 jo8pPcgP/+zJVIJ0Mu8sAtf7WvedQzlOPuC3QRgXh/Bc1MAhuxa8L89yTMhd2WDons n94ZSNQvgYJ8SJks3g6VE4YHfd8KhWiWLkEfPBLM= From: "pinskia at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/114165] &scalar+1 and array+1 rejected as template parameters Date: Fri, 01 Mar 2024 18:42:26 +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: 14.0 X-Bugzilla-Keywords: rejects-valid 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 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D114165 --- Comment #1 from Andrew Pinski --- :17:32: error: '((& scalar) + 4)' is not a valid template argument = for 'int*' because it is not the address of a variable=