From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27720 invoked by alias); 14 Apr 2008 05:23:27 -0000 Received: (qmail 27638 invoked by uid 48); 14 Apr 2008 05:22:44 -0000 Date: Mon, 14 Apr 2008 05:23:00 -0000 Subject: [Bug c++/35929] New: Argument type of non-member operator->* X-Bugzilla-Reason: CC Message-ID: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "gcc at magfr dot user dot lysator dot liu dot se" Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2008-04/txt/msg00956.txt.bz2 When I try to compile a non-member operator ->* g++ tells me that pmv.C:3: error: 'int& operator->*(s*, int s::*)' must have an argument of class or enumerated type but the only place where the standard mentions the argument types of ->* is in 13.6ยง11 and there it is stated ...there exist candidate operator functions of the form CV12 T & operator->*(CV1 C1 *, CV2 T C2 ::*); and thus I think this is a bug. -- Summary: Argument type of non-member operator->* Product: gcc Version: 4.4.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: gcc at magfr dot user dot lysator dot liu dot se GCC build triplet: i586-pc-linux-gnu GCC host triplet: i586-pc-linux-gnu GCC target triplet: i586-pc-linux-gnu http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35929