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.
*** Bug 21337 has been marked as a duplicate of this bug. ***
Confirmed.
Subject: Re: New: [3.4 regression] ICE with pointer to member in template reichelt at gcc dot gnu dot org wrote: > The testcase in PR 15875 started ICE'ing on the 3.4 branch again: > Mark, this is most probably due to the fix for PR18464. It is indeed. > Could you please have a look? In progress. > The testcase doesn't seem to be in the testsuite. > It should probably be added. Yes, I'll add it in the process of figuring out what to do here.
Fixed in 3.4.4. See PR 15875 for the patch.