From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25165 invoked by alias); 10 May 2002 20:56:04 -0000 Mailing-List: contact gcc-prs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-prs-owner@gcc.gnu.org Received: (qmail 25128 invoked by uid 71); 10 May 2002 20:56:02 -0000 Resent-Date: 10 May 2002 20:56:02 -0000 Resent-Message-ID: <20020510205602.25127.qmail@sources.redhat.com> Resent-From: gcc-gnats@gcc.gnu.org (GNATS Filer) Resent-To: nobody@gcc.gnu.org Resent-Cc: gcc-prs@gcc.gnu.org, gcc-bugs@gcc.gnu.org, cannot@sources.redhat.com, typedef@sources.redhat.com, const@sources.redhat.com, functions@sources.redhat.com Resent-Reply-To: gcc-gnats@gcc.gnu.org, ge@cs.twsu.edu Received:(qmail 20105 invoked by uid 61); 10 May 2002 20:52:39 -0000 Message-Id:<20020510205239.20101.qmail@sources.redhat.com> Date: Fri, 10 May 2002 13:56:00 -0000 From: ge@cs.twsu.edu Reply-To: 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 X-Send-Pr-Version:gnatsweb-2.9.3 (1.1.1.1.2.31) X-GNATS-Notify:cannot typedef const functions Subject: c++/6628: cannot typedef const functions X-SW-Source: 2002-05/txt/msg00305.txt.bz2 List-Id: >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 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: