public inbox for gcc-prs@sourceware.org help / color / mirror / Atom feed
From: ge@cs.twsu.edu To: gcc-gnats@gcc.gnu.org Cc: cannot@sources.redhat.com, typedef@sources.redhat.com, const@sources.redhat.com, functions@sources.redhat.com Subject: c++/6628: cannot typedef const functions Date: Fri, 10 May 2002 13:56:00 -0000 [thread overview] Message-ID: <20020510205239.20101.qmail@sources.redhat.com> (raw) >Number: 6628 >Category: c++ >Synopsis: cannot typedef const functions >Confidential: no >Severity: serious >Priority: medium >Responsible: unassigned >State: open >Class: sw-bug >Submitter-Id: net >Arrival-Date: Fri May 10 13:56:00 PDT 2002 >Closed-Date: >Last-Modified: >Originator: ge@cs.twsu.edu >Release: gcc version 3.0.4 >Organization: >Environment: gcc version 3.0.4 (Mandrake Linux 8.2 3.0.4-2mdk) >Description: // t.cc #include <string> struct Person { void print (); std::string name_; }; typedef void (Person::*MF)() const; typedef void FVC (void) const; The last line caused the following error message: t.cc:4: invalid type qualifier for non-member function type t.cc:4: `const' and `volatile' function specifiers on `FVC' invalid in type >How-To-Repeat: cut and paste the 4 lines of source code to a file, and the compile it with g++-3.0.4. >Fix: >Release-Note: >Audit-Trail: >Unformatted:
next reply other threads:[~2002-05-10 20:56 UTC|newest] Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top 2002-05-10 13:56 ge [this message] 2002-05-10 14:06 Phil Edwards 2002-06-07 7:35 lerdsuwa
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=20020510205239.20101.qmail@sources.redhat.com \ --to=ge@cs.twsu.edu \ --cc=cannot@sources.redhat.com \ --cc=const@sources.redhat.com \ --cc=functions@sources.redhat.com \ --cc=gcc-gnats@gcc.gnu.org \ --cc=typedef@sources.redhat.com \ /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: linkBe 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).