From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id C1AB13858D34; Thu, 4 Apr 2024 06:58:48 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org C1AB13858D34 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1712213928; bh=SfS9ucUdS2bOZ6Eu589I9pU1LWVuK5A6tRqbgbGSk4s=; h=From:To:Subject:Date:In-Reply-To:References:From; b=fgVJ6D4lxySIJxSJ2y3c+fpwOUmmYLsEQJt8bGy7JPPCCORFscYZ+5K9ADk2G4g9e Bstt6O78Xyf0C86dQBEoHcntyjKy8QKvSXUpxn4ysPLbUISp/koPgit9T5EBr27nHf xImXPTtAu9m2NG2v0Q2xk5QswFIm4S1dt7WyNuvQ= From: "jens.maurer at gmx dot net" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/114569] GCC accepts forming pointer to function type which is ref qualified Date: Thu, 04 Apr 2024 06:58:48 +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: accepts-invalid X-Bugzilla-Severity: normal X-Bugzilla-Who: jens.maurer at gmx dot net 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: cc 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=3D114569 Jens Maurer changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jens.maurer at gmx dot net --- Comment #3 from Jens Maurer --- Note that the ref-qualified function type is not directly an argument for a template type parameter (which would be allowed), but it's a function param= eter type inside a function declarator. And those do decay to (possibly ill-for= med) pointers.=