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.