This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/26740] New: [4.2 regression] ICE taking the address of a bound member function
- From: "reichelt at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 18 Mar 2006 02:42:00 -0000
- Subject: [Bug c++/26740] New: [4.2 regression] ICE taking the address of a bound member function
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
The following testcases cause ICEs on mainline:
g++.old-deja/g++.bugs/900213_03.C
g++.old-deja/g++.other/pmf2.C
g++.old-deja/g++.other/pmf7.C
They all crash at the same position:
pmf2.C: In function 'void f()':
pmf2.C:17: error: ISO C++ forbids taking the address of a bound member function
to form a pointer to member function. Say '&S::f'
pmf2.C:17: internal compiler error: in build_offset_ref, at cp/init.c:1353
Please submit a full bug report, [etc.]
--
Summary: [4.2 regression] ICE taking the address of a bound
member function
Product: gcc
Version: 4.2.0
Status: UNCONFIRMED
Keywords: ice-on-invalid-code, error-recovery
Severity: normal
Priority: P3
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: reichelt at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26740