From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20152 invoked by alias); 8 Jul 2014 17:46:59 -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 20001 invoked by uid 48); 8 Jul 2014 17:46:38 -0000 From: "redi at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/61753] [4.7.2 regression] prototype for function does not match any in class error Date: Tue, 08 Jul 2014 17:46: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: redi 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: keywords bug_status 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-SW-Source: 2014-07/txt/msg00495.txt.bz2 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D61753 Jonathan Wakely changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |diagnostic Status|WAITING |NEW --- Comment #2 from Jonathan Wakely --- This is not valid syntax for a constructor: const Rule::Rule(const ExprPtr e) : expr(e) { } The first const is ill-formed (and the second one is pointless, but harmles= s) The error message could be better though, reduced: class Rule { Rule(int e); }; const Rule::Rule(int e) { } test.cc:5:7: error: prototype for =E2=80=98Rule::Rule(int)=E2=80=99 does no= t match any in class =E2=80=98Rule=E2=80=99 const Rule::Rule(int e) { } ^ test.cc:1:7: error: candidates are: Rule::Rule(const Rule&) class Rule { ^ test.cc:2:3: error: Rule::Rule(int) Rule(int e); ^ EDG has a better diagnostic: "test.cc", line 5: error: return type may not be specified on a constructor >>From gcc-bugs-return-455905-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Jul 08 17:51:15 2014 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 26770 invoked by alias); 8 Jul 2014 17:51:14 -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 Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 26104 invoked by uid 48); 8 Jul 2014 17:50:53 -0000 From: "dje at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug go/61746] A line starting with /*// causes an error even if the /* is closed on the next line Date: Tue, 08 Jul 2014 17:51:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: go X-Bugzilla-Version: 4.9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: dje at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: ian at airs dot com X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status cf_reconfirmed_on cc everconfirmed 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: 2014-07/txt/msg00496.txt.bz2 Content-length: 544 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61746 David Edelsohn changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Last reconfirmed| |2014-07-08 CC| |ian at airs dot com Ever confirmed|0 |1 --- Comment #1 from David Edelsohn --- Confirmed.