The following reply was made to PR c++/5125; it has been noted by GNATS. From: Dmitri Lenev To: rodrigc@gcc.gnu.org, gcc-bugs@gcc.gnu.org, gcc-prs@gcc.gnu.org, nobody@gcc.gnu.org, gcc-gnats@gcc.gnu.org Cc: Subject: Re: c++/5125: both g++ 3.0.1 and 2.95.3 crash with internal error when trying compile template method with parameter pointer to method Date: Sat, 15 Dec 2001 18:53:23 +0300 Thanks a lot. So it is ice-on-illegal-code sort of bug. :-) Anyway i have resolved the problem by slightly changing my design approach... * rodrigc@gcc.gnu.org [01/12/15 18:23]: > Synopsis: both g++ 3.0.1 and 2.95.3 crash with internal error when trying compile template method with parameter pointer to method > > State-Changed-From-To: open->analyzed > State-Changed-By: rodrigc > State-Changed-When: Sat Dec 15 07:21:04 2001 > State-Changed-Why: > The compiler should probably not ICE, but your > code example is illegal. You made a spelling mistake in > one of the parameter names: > > --- t.cc.orig Sat Dec 15 10:19:55 2001 > +++ t.cc Sat Dec 15 10:20:01 2001 > @@ -49,7 +49,7 @@ > SerializationStream::serializeMember (unsigned int member, const I & item, > size_t (I:: > *serialization_function) > - (SerializationSream & stream) const) > + (SerializationStream & stream) const) > { > serialize (member); > size_t valueSize = item.*serialization_function (*this); > > http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=5125 -- ó Õ×ÁÖÅÎÉÅÍ, äÍÉÔÒÉÊ ìÅÎÅ×.