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.
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?
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
Duplicate of PR7737 which was fixed in gcc 3.2.1 and subsequent versions. *** This bug has been marked as a duplicate of 7737 ***
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