From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6191 invoked by alias); 5 Mar 2007 12:43:21 -0000 Received: (qmail 6142 invoked by uid 48); 5 Mar 2007 12:43:07 -0000 Date: Mon, 05 Mar 2007 12:43:00 -0000 Subject: [Bug c++/31042] New: Instantiation with const pointer to member X-Bugzilla-Reason: CC Message-ID: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "wolfgang dot roehrl at gi-de dot com" 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: 2007-03/txt/msg00292.txt.bz2 Dear all, I would like to post a bug report for the GNU C/C++ compiler 3.3-e500. We use the compiler to generate code for a PowerPC processor. Used invokation line for the GNU C++ compiler: ccppc -c -x c++ -ansi -Wall -Werror -mcpu=8540 -fverbose-asm -mbig -fmerge-templates -mmultiple -mno-string -mstrict-align -O3 -fno-exceptions -fno-rtti -fno-builtin-printf -I -D X.CPP -oX.O // file X.CPP class X; template int X::** f1 () { return static_cast(0); } int X::** f2 () { return f1(); } The compiler gives the following error messages: X.CPP: In function `int X::** f1() [with T_ = int X::*]': X.CPP:6: instantiated from here X.CPP:4: error: invalid conversion from `int X::**' to `int X::**' BTW, function f1 is instantiated with 'T_ = int X::* const' and not with 'T_ = int X::*'. Kind regards W. Roehrl -- Summary: Instantiation with const pointer to member Product: gcc Version: 3.3 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: wolfgang dot roehrl at gi-de dot com GCC build triplet: sparc-sun-solaris2.5.1 GCC host triplet: i386-pc-mingw32 GCC target triplet: powerpc-wrs-vxworks http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31042