From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 104329 invoked by alias); 13 Apr 2015 21:20:17 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 104288 invoked by uid 48); 13 Apr 2015 21:20:13 -0000 From: "abutcher at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/65750] [4.9/5 Regression] misinterpret in a virtual member function with a C++11 style function signature Date: Mon, 13 Apr 2015 21:20: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: 5.0 X-Bugzilla-Keywords: rejects-valid X-Bugzilla-Severity: normal X-Bugzilla-Who: abutcher at gcc dot gnu.org X-Bugzilla-Status: NEW 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: 7bit X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2015-04/txt/msg01059.txt.bz2 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65750 --- Comment #3 from Adam Butcher --- Agreed. Upon seeing the 'auto' in the parameter list, we'll synthesize a template parameter for 'g'. I think Paolo added the diagnostic for virtual to fix an ICE. I'm not sure immediately how to handle this one. For function pointer types "auto (" should have this behavior. Maybe we need a bit of look-ahead to solve this (either for a function pointer or the trailing return arrow). Looks like trying to tie down semantics at parse time is biting us again.