From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 1F7DC3959CB6; Tue, 1 Sep 2020 19:25:38 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 1F7DC3959CB6 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1598988338; bh=I2uZ4tPWR/PjO1Ov5EIVmqosJ6mzRDgfgOVIo4LKeeI=; h=From:To:Subject:Date:In-Reply-To:References:From; b=IU03ZT8Vq/bHHvz79jdgkM8WqVUfCQ1hJaCgO5oQ1+FfZDRhKCTEkq+xLKjo8Ehvm 90CJpDWYnv1qXWGvqUkjXyoIRB24tLnYo33whjT3dJ4lSnyfo2R6ZDH9a9+AZC5MFu OBbtMIf2+UliZzBmrSgHCT64csdH9TPQVcwZ9QaI= From: "insertinterestingnamehere at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/96877] Erroneous warning when default initializing function pointer types defined using std::declval Date: Tue, 01 Sep 2020 19:25:38 +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: 10.2.1 X-Bugzilla-Keywords: diagnostic X-Bugzilla-Severity: normal X-Bugzilla-Who: insertinterestingnamehere at gmail dot com X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: INVALID 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 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 01 Sep 2020 19:25:38 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D96877 --- Comment #4 from Ian Henriksen --- It's worth noting that, with g++ using function_type =3D void (*)(void*) noexcept; actually works, but typedef void(*function_type)(void*) noexcept; does not. clang++ rejects both though.=