This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/61753] New: [4.7.2 regression] prototype for function does not match any in class error
- From: "shapero at uw dot edu" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 08 Jul 2014 17:24:37 +0000
- Subject: [Bug c++/61753] New: [4.7.2 regression] prototype for function does not match any in class error
- Auto-submitted: auto-generated
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61753
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 with
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
âpegmatite::Rule::Rule(pegmatite::ExprPtr)â does not match any in class
âpegmatite::Ruleâ
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:
pegmatite::Rule::Rule(const pegmatite::Rule&&)
/home/daniel/programs/Pegmatite/parser.hh:476:2: error:
pegmatite::Rule::Rule(const pegmatite::Rule&)
/home/daniel/programs/Pegmatite/parser.hh:472:2: error:
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.