public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "shapero at uw dot edu" <gcc-bugzilla@gcc.gnu.org>
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	[thread overview]
Message-ID: <bug-61753-4@http.gcc.gnu.org/bugzilla/> (raw)

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.
>From gcc-bugs-return-455900-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Jul 08 17:26:12 2014
Return-Path: <gcc-bugs-return-455900-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
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: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
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" <gcc-bugzilla@gcc.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: <bug-61753-4-K9MbP2y633@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-61753-4@http.gcc.gnu.org/bugzilla/>
References: <bug-61753-4@http.gcc.gnu.org/bugzilla/>
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?ida753

Jonathan Wakely <redi at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |WAITING
   Last reconfirmed|                            |2014-07-08
     Ever confirmed|0                           |1

--- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Please provide the information requested at http://gcc.gnu.org/bugs


             reply	other threads:[~2014-07-08 17:24 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-07-08 17:24 shapero at uw dot edu [this message]
2014-07-08 17:46 ` [Bug c++/61753] " redi at gcc dot gnu.org
2014-07-08 17:59 ` [Bug c++/61753] poor diagnostic for constructor definition that starts with 'const' redi at gcc dot gnu.org
2014-07-09  0:36 ` shapero at uw dot edu
2015-08-31 15:44 ` paolo.carlini at oracle dot com
2015-09-01  8:40 ` paolo at gcc dot gnu.org

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bug-61753-4@http.gcc.gnu.org/bugzilla/ \
    --to=gcc-bugzilla@gcc.gnu.org \
    --cc=gcc-bugs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).