From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22111 invoked by alias); 8 Jul 2014 17:24:52 -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 21979 invoked by uid 48); 8 Jul 2014 17:24:40 -0000 From: "shapero at uw dot edu" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/61753] New: [4.7.2 regression] prototype for function does not match any in class error Date: Tue, 08 Jul 2014 17:24:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 4.7.2 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: shapero at uw dot edu X-Bugzilla-Status: UNCONFIRMED 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: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter Message-ID: 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/msg00490.txt.bz2 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D61753 Bug ID: 61753 Summary: [4.7.2 regression] prototype for function does not match any in class error Product: gcc Version: 4.7.2 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: shapero at uw dot edu I'm trying to compile the Pegmatite library: https://github.com/CompilerTeaching/Pegmatite The commit I'm working off of is f5a941ebad149470fa633ba4fdbae318b1e66782. = The library compiles and runs fine with the most recent version of clang and wi= th g++ 4.6.3, on Linux Mint 14. However, using g++ 4.7.2, I get the following error message: /home/daniel/programs/Pegmatite/parser.cc:1330:7: error: prototype for =E2=80=98pegmatite::Rule::Rule(pegmatite::ExprPtr)=E2=80=99 does not match = any in class =E2=80=98pegmatite::Rule=E2=80=99 In file included from /home/daniel/programs/Pegmatite/parser.cc:38:0: /home/daniel/programs/Pegmatite/parser.hh:486:2: error: candidates are: pegmatite::Rule::Rule(pegmatite::ExprPtr) /home/daniel/programs/Pegmatite/parser.hh:481:2: error:=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20 pegmatite::Rule::Rule(const pegmatite::Rule&&) /home/daniel/programs/Pegmatite/parser.hh:476:2: error:=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20 pegmatite::Rule::Rule(const pegmatite::Rule&) /home/daniel/programs/Pegmatite/parser.hh:472:2: error:=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20 pegmatite::Rule::Rule(pegmatite::CharacterExprPtr) The error says that the constructor pegmatite::Rule::Rule(pegmative::ExprPtr) has no match in the class pegmatite::Rule, and yet the very first candidate= it lists is just that. >>From gcc-bugs-return-455900-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Jul 08 17:26:12 2014 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 24270 invoked by alias); 8 Jul 2014 17:26:10 -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 24166 invoked by uid 48); 8 Jul 2014 17:26:03 -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:26: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: X-Bugzilla-Severity: normal X-Bugzilla-Who: redi at gcc dot gnu.org X-Bugzilla-Status: WAITING 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: bug_status cf_reconfirmed_on 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/msg00491.txt.bz2 Content-length: 540 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61753 Jonathan Wakely changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |WAITING Last reconfirmed| |2014-07-08 Ever confirmed|0 |1 --- Comment #1 from Jonathan Wakely --- Please provide the information requested at http://gcc.gnu.org/bugs