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

Dmitri Lenev dlenev@spylog.ru
Sat Dec 15 08:33:00 GMT 2001


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

-- 
цЁ ц∙ц≈ц│ц√ц┘ц▌ц┴ц┘ц█, ц╓ц█ц┴ц■ц▓ц┴ц┼ ц╛ц┘ц▌ц┘ц≈.



More information about the Gcc-bugs mailing list