Bug 11294 - ICE in resolve_offset_ref, at cp/init.c: 1886
Summary: ICE in resolve_offset_ref, at cp/init.c: 1886
Status: RESOLVED DUPLICATE of bug 7737
Alias: None
Product: gcc
Classification: Unclassified
Component: c++ (show other bugs)
Version: 3.2
: P2 normal
Target Milestone: 3.4.0
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-06-23 15:34 UTC by Christoph Pesch
Modified: 2005-07-23 22:49 UTC (History)
1 user (show)

See Also:
Host: i486-suse-linux
Target:
Build:
Known to work:
Known to fail:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Christoph Pesch 2003-06-23 15:34:04 UTC
When compiling the following source an ICE is reported:

#include <functional>

struct C
{
  void mf();
};

void f()
{
  std::mem_fun(&(C::mf));
  //            ^     ^    ICE if parenthesis are added
}


pesch@kstbu027[~/src/c++/test]285: g++ -c gcc_bug.cpp
gcc_bug.cpp: In function `void f()':
gcc_bug.cpp:10: 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.
Comment 1 Andrew Pinski 2003-06-23 15:40:51 UTC
I do not see this on 3.2.3, 3.2.2, 3.0.4, 2.95.3, 3.3.1 (20030616) or the mainline 
(20030623) on i686-pc-linux-gnu.
Could you provide the output of `gcc -v' or try a newer version of gcc like 3.3?
Comment 2 Christoph Pesch 2003-06-23 15:55:58 UTC
Subject: Re:  ICE in resolve_offset_ref, at cp/init.c: 1886

"pinskia" == pinskia at physics dot uc dot edu <gcc-bugzilla@gcc.gnu.org> writes:

> PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11294


> pinskia at physics dot uc dot edu changed:

>            What    |Removed                     |Added
> ----------------------------------------------------------------------------
>              Status|UNCONFIRMED                 |WAITING


> ------- Additional Comments From pinskia at physics dot uc dot edu  2003-06-23 15:40 -------
> I do not see this on 3.2.3, 3.2.2, 3.0.4, 2.95.3, 3.3.1 (20030616) or the mainline 
> (20030623) on i686-pc-linux-gnu.
> Could you provide the output of `gcc -v' or try a newer version of gcc like 3.3?

pesch@kstbu027[~/src/c++/test]287: g++ -v
Reading specs from /usr/lib/gcc-lib/i486-suse-linux/3.2/specs
Configured with: ../configure --enable-threads=posix --prefix=/usr --with-local-prefix=/usr/local --infodir=/usr/share/info --mandir=/usr/share/man --libdir=/usr/lib --enable-languages=c,c++,f77,objc,java,ada --enable-libgcj --with-gxx-include-dir=/usr/include/g++ --with-slibdir=/lib --with-system-zlib --enable-shared --enable-__cxa_atexit i486-suse-linux
Thread model: posix
gcc version 3.2


I will build gcc 3.3 and test this version.

Best regards,
Christoph

Comment 3 Volker Reichelt 2003-06-23 16:08:38 UTC
Duplicate of PR7737 which was fixed in gcc 3.2.1 and subsequent versions.


*** This bug has been marked as a duplicate of 7737 ***
Comment 4 Gabriel Dos Reis 2003-06-28 12:04:58 UTC
Subject: Re:  New: ICE in resolve_offset_ref, at cp/init.c: 1886

"christoph dot pesch at siemens dot com" <gcc-bugzilla@gcc.gnu.org> writes:

| void f()
| {
|   std::mem_fun(&(C::mf));
|   //            ^     ^    ICE if parenthesis are added

I fixed this some time ago in the 3.2.x series.

-- Gaby