This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
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
- From: Dmitri Lenev <dlenev at spylog dot ru>
- To: rodrigc at gcc dot gnu dot org, gcc-bugs at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org,nobody at gcc dot gnu dot org, gcc-gnats at gcc dot gnu dot org
- Date: Sat, 15 Dec 2001 18:53:23 +0300
- 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
- References: <20011215152104.12242.qmail@sources.redhat.com>
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 <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
--
С уважением, Дмитрий Ленев.