From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29588 invoked by alias); 4 Feb 2003 23:26:01 -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 29567 invoked by uid 71); 4 Feb 2003 23:26:01 -0000 Resent-Date: 4 Feb 2003 23:26:00 -0000 Resent-Message-ID: <20030204232600.29566.qmail@sources.redhat.com> Resent-From: gcc-gnats@gcc.gnu.org (GNATS Filer) Resent-Cc: gcc-prs@gcc.gnu.org, gcc-bugs@gcc.gnu.org Resent-Reply-To: gcc-gnats@gcc.gnu.org, mvishnu@fla.fujitsu.com Received: (qmail 27086 invoked by uid 48); 4 Feb 2003 23:17:19 -0000 Message-Id: <20030204231719.27085.qmail@sources.redhat.com> Date: Tue, 04 Feb 2003 23:26:00 -0000 From: mvishnu@fla.fujitsu.com Reply-To: mvishnu@fla.fujitsu.com To: gcc-gnats@gcc.gnu.org X-Send-Pr-Version: gnatsweb-2.9.3 (1.1.1.1.2.31) Subject: c++/9575: Internal compiler error in resolve_offset_ref, at cp/init.c: 1886 X-SW-Source: 2003-02/txt/msg00234.txt.bz2 List-Id: >Number: 9575 >Category: c++ >Synopsis: Internal compiler error in resolve_offset_ref, at cp/init.c: 1886 >Confidential: no >Severity: serious >Priority: medium >Responsible: unassigned >State: open >Class: sw-bug >Submitter-Id: net >Arrival-Date: Tue Feb 04 23:26:00 UTC 2003 >Closed-Date: >Last-Modified: >Originator: Meenan Vishnu >Release: g++ 3.2 >Organization: >Environment: /local8/bin/gcc32/bin/g++ -v Reading specs from /local8/bin/gcc32/bin/../lib/gcc-lib/sparc-sun-solaris2.8/3.2/specs Configured with: ../gcc-3.2/configure --with-gnu-ld --prefix=/usr/local/bin/gcc32 --enable-languages=c,c++ --disable-shared : (reconfigured) ../gcc-3.2/configure --with-as=/usr/local/bin/gcc32/bin/as --with-gnu-as --with-ld=/usr/local/bin/gcc32/bin/ld --with-gnu-ld --prefix=/usr/local/bin/gcc32 --enable-languages=c,c++ --disable-shared : (reconfigured) ../gcc-3.2/configure --with-as=/usr/local/bin//as --with-gnu-as --with-ld=/usr/local/bin/ld --with-gnu-ld --prefix=/usr/local/bin/gcc32 --enable-languages=c,c++ --disable-shared : (reconfigured) ../gcc-3.2/configure --with-as=/usr/local/bin/as --with-gnu-as --with-ld=/usr/local/bin/ld --with-gnu-ld --prefix=/usr/local/bin/gcc32 --enable-languages=c,c++ --disable-shared Thread model: posix gcc version 3.2 >Description: class foo { public: foo( void ){}; ~foo( void ){}; foo& operator&=( const foo& f ){ return *this; }; }; void func( foo* p ) { typedef foo& (foo::*MEM_FUNC_PTR)( const foo& ); MEM_FUNC_PTR mfptr = &( foo::operator&= ); (p->*mfptr)( *p ); } >How-To-Repeat: Place the above code in a file, say test_pgm.cc. Compile it with g++ -c test_pgm.cc (g++ version 3.2 on Sparc Solaris and on Linux). The output is: /local8/bin/gcc32/bin/g++ test_pgm.cc test_pgm.cc: In function `void func(foo*)': test_pgm.cc:17: Internal compiler error in resolve_offset_ref, at cp/init.c: 1886 Please submit a full bug report, with preprocessed source if appropriate. See for instructions. >Fix: >Release-Note: >Audit-Trail: >Unformatted: