This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

c++/9575: Internal compiler error in resolve_offset_ref, at cp/init.c: 1886


>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 <URL:http://www.gnu.org/software/gcc/bugs.html> for instructions.
>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]