template <class T, class A> struct C { static T *foo (A x) { return new T ((T) x); } };
class A {}; A *bar () { A a; return C<A, A>::foo (a); } ICEs on gcc-3_4-branch and on HEAD, works with GCC 3.2.3. -- Summary: ICE in stabilize_call Product: gcc Version: 4.0.0 Status: UNCONFIRMED Severity: normal Priority: P2 Component: c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: jakub at gcc dot gnu dot org CC: gcc-bugs at gcc dot gnu dot org http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19312