From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 59122 invoked by alias); 1 Sep 2015 08:40:25 -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 59063 invoked by uid 55); 1 Sep 2015 08:40:21 -0000 From: "paolo at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/61753] poor diagnostic for constructor definition that starts with 'const' Date: Tue, 01 Sep 2015 08:40: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: 4.7.2 X-Bugzilla-Keywords: diagnostic X-Bugzilla-Severity: normal X-Bugzilla-Who: paolo at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: paolo.carlini at oracle dot com 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-09/txt/msg00014.txt.bz2 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61753 --- Comment #5 from paolo at gcc dot gnu.org --- Author: paolo Date: Tue Sep 1 08:39:47 2015 New Revision: 227361 URL: https://gcc.gnu.org/viewcvs?rev=227361&root=gcc&view=rev Log: /cp 2015-09-01 Paolo Carlini PR c++/61753 * decl.c (smallest_type_quals_location): New. (check_special_function_return_type): Use the latter; add int and const location_t* parameters. (grokdeclarator): Adjust check_special_function_return_type call. /testsuite 2015-09-01 Paolo Carlini PR c++/61753 * g++.dg/other/pr61753.C: New. Added: trunk/gcc/testsuite/g++.dg/other/pr61753.C Modified: trunk/gcc/cp/ChangeLog trunk/gcc/cp/decl.c trunk/gcc/testsuite/ChangeLog