public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* Re: c++/9575: Internal compiler error in resolve_offset_ref, at cp/init.c:    1886
@ 2003-02-05  0:16 Wolfgang Bangerth
  0 siblings, 0 replies; 4+ messages in thread
From: Wolfgang Bangerth @ 2003-02-05  0:16 UTC (permalink / raw)
  To: nobody; +Cc: gcc-prs

The following reply was made to PR c++/9575; it has been noted by GNATS.

From: Wolfgang Bangerth <bangerth@ticam.utexas.edu>
To: Meenaradchagan Vishnu <mvishnu@fla.fujitsu.com>
Cc: gcc-bugs@gcc.gnu.org, <gcc-gnats@gcc.gnu.org>
Subject: Re: c++/9575: Internal compiler error in resolve_offset_ref, at
 cp/init.c:    1886
Date: Tue, 4 Feb 2003 18:14:29 -0600 (CST)

 > Thank you very much for your prompt response.  Is the restriction on
 > paranthesis use conforms to the C++ standards?
 
 Yes.
 
 
 > Note that this code compiles and works as intended on other compilers.
 
 Right, but this is accidentally, or at best an extension of these 
 compilers. I think in prior versions of gcc this was more by chance.
 
 W.
 
 -------------------------------------------------------------------------
 Wolfgang Bangerth             email:            bangerth@ticam.utexas.edu
                               www: http://www.ticam.utexas.edu/~bangerth/
 
 


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: c++/9575: Internal compiler error in resolve_offset_ref, at cp/init.c:    1886
@ 2003-02-05  0:06 Meenaradchagan Vishnu
  0 siblings, 0 replies; 4+ messages in thread
From: Meenaradchagan Vishnu @ 2003-02-05  0:06 UTC (permalink / raw)
  To: nobody; +Cc: gcc-prs

The following reply was made to PR c++/9575; it has been noted by GNATS.

From: Meenaradchagan Vishnu <mvishnu@fla.fujitsu.com>
To: bangerth@dealii.org, gcc-bugs@gcc.gnu.org, gcc-prs@gcc.gnu.org,
   mvishnu@fla.fujitsu.com, nobody@gcc.gnu.org, gcc-gnats@gcc.gnu.org
Cc:  
Subject: Re: c++/9575: Internal compiler error in resolve_offset_ref, at cp/init.c:    1886
Date: Tue, 4 Feb 2003 16:02:06 -0800 (PST)

 Hi,
 
 Thank you very much for your prompt response.  Is the restriction on paranthesis 
 use conforms to the C++ standards?
 
 Note that this code compiles and works as intended on other compilers.
 
 Sincerely,
 Meenan Vishnu
 
 
 
 >Date: 4 Feb 2003 23:35:37 -0000
 >To: gcc-bugs@gcc.gnu.org, gcc-prs@gcc.gnu.org, mvishnu@fla.fujitsu.com, 
 nobody@gcc.gnu.org
 >From: bangerth@dealii.org
 >Subject: Re: c++/9575: Internal compiler error in resolve_offset_ref, at 
 cp/init.c:    1886
 >
 >Synopsis: Internal compiler error in resolve_offset_ref, at cp/init.c:    1886
 >
 >State-Changed-From-To: open->closed
 >State-Changed-By: bangerth
 >State-Changed-When: Tue Feb  4 23:35:37 2003
 >State-Changed-Why:
 >    Confirmed with 3.2, but already fixed in 3.2.2pre, 3.3 and
 >    3.4:
 >    
 >    mp/g> /home/bangerth/bin/gcc-3.4-pre/bin/c++ -c x.cc
 >    x.cc: In function `void func(foo*)':
 >    x.cc:16: error: parenthesis around 'foo::operator&=(const foo&)' cannot be 
 used
 >       to form a pointer-to-member-function
 >
 >http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=9
 575
 


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: c++/9575: Internal compiler error in resolve_offset_ref, at cp/init.c:    1886
@ 2003-02-04 23:35 bangerth
  0 siblings, 0 replies; 4+ messages in thread
From: bangerth @ 2003-02-04 23:35 UTC (permalink / raw)
  To: gcc-bugs, gcc-prs, mvishnu, nobody

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

State-Changed-From-To: open->closed
State-Changed-By: bangerth
State-Changed-When: Tue Feb  4 23:35:37 2003
State-Changed-Why:
    Confirmed with 3.2, but already fixed in 3.2.2pre, 3.3 and
    3.4:
    
    mp/g> /home/bangerth/bin/gcc-3.4-pre/bin/c++ -c x.cc
    x.cc: In function `void func(foo*)':
    x.cc:16: error: parenthesis around 'foo::operator&=(const foo&)' cannot be used
       to form a pointer-to-member-function

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=9575


^ permalink raw reply	[flat|nested] 4+ messages in thread

* c++/9575: Internal compiler error in resolve_offset_ref, at cp/init.c:    1886
@ 2003-02-04 23:26 mvishnu
  0 siblings, 0 replies; 4+ messages in thread
From: mvishnu @ 2003-02-04 23:26 UTC (permalink / raw)
  To: gcc-gnats


>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:


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2003-02-05  0:16 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-02-05  0:16 c++/9575: Internal compiler error in resolve_offset_ref, at cp/init.c: 1886 Wolfgang Bangerth
  -- strict thread matches above, loose matches on Subject: below --
2003-02-05  0:06 Meenaradchagan Vishnu
2003-02-04 23:35 bangerth
2003-02-04 23:26 mvishnu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).