This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/21339] New: [3.4 regression] ICE with pointer to member in template
- 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: 2 May 2005 14:13:30 -0000
- Subject: [Bug c++/21339] New: [3.4 regression] ICE with pointer to member in template
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
The testcase in PR 15875 started ICE'ing on the 3.4 branch again:
==================================
struct A
{
void foo();
};
template<int> void bar()
{
typedef void (A::*fptr)();
fptr ptr = &A::foo;
}
==================================
bug.c: In function `void bar()':
bug.c:9: internal compiler error: in build_ptrmemfunc, at cp/typeck.c:5548
Please submit a full bug report, [etc.]
Mark, this is most probably due to the fix for PR18464.
Could you please have a look?
The testcase doesn't seem to be in the testsuite.
It should probably be added.
--
Summary: [3.4 regression] ICE with pointer to member in template
Product: gcc
Version: 3.4.4
Status: UNCONFIRMED
Keywords: ice-on-valid-code, monitored
Severity: critical
Priority: P2
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: reichelt at gcc dot gnu dot org
CC: gcc-bugs at gcc dot gnu dot org,mmitchel at gcc dot gnu
dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21339