From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 30E2E385AE6C; Mon, 12 Sep 2022 20:30:01 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 30E2E385AE6C DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1663014601; bh=XT4HwLBUsj9cwXNHe5U/O3JK4A1sZcZr1ZKm33ceW2g=; h=From:To:Subject:Date:In-Reply-To:References:From; b=stWmkSNRxanyz9ynF8IkSZaNcxqZxDFoEM11mvvXIxDdlp06WFmBgxO382itpmxS8 VMJh1RijcXdl6bryMvaoa8+gpYbgKHWs49lJK6HAZCRFv4Z2Fr4Ri0QdaPWxgaoTLg Ha1GD1zZVr6TdmHxFAPO/ZLUUw2sv3O0NScgmfqw= From: "cvs-commit at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/106893] [12 Regression] auto deduces wrong type for function pointer Date: Mon, 12 Sep 2022 20:30:00 +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: 12.2.0 X-Bugzilla-Keywords: rejects-valid X-Bugzilla-Severity: normal X-Bugzilla-Who: cvs-commit at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: jason at gcc dot gnu.org X-Bugzilla-Target-Milestone: 12.3 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=3D106893 --- Comment #4 from CVS Commits --- The releases/gcc-12 branch has been updated by Jason Merrill : https://gcc.gnu.org/g:999638cb7b126d33d1ea6548c69ba387b7d7a270 commit r12-8758-g999638cb7b126d33d1ea6548c69ba387b7d7a270 Author: Jason Merrill Date: Mon Sep 12 13:47:34 2022 -0400 c++: auto member function and auto variable [PR106893] As with PR105623, we need to call mark_single_function sooner to resolve the type of a BASELINK. PR c++/106893 PR c++/90451 gcc/cp/ChangeLog: * decl.cc (cp_finish_decl): Call mark_single_function. gcc/testsuite/ChangeLog: * g++.dg/cpp1y/auto-fn65.C: New test.=