gcc-2.95.2: Internal compiler error. FOLLOW-UP

Vladimir Batov vladimir@res.ray.com
Fri Dec 3 11:24:00 GMT 1999


The line that the gcc-2.95 does not like is

template<class T>
class Handle
{
   template<class U> friend Handle<U>;
   ...
};

If I comment the templated friend out and implement the functionality
some other way, it works. I hope you find it helpful.

P.S. Once again, it works with egcs-1.1.2

Regards,
Vladimir.

Vladimir Batov wrote:
> 
> I tried to migrate from egcs-1.1.2 to gcc-2.95.2 and the new version
> failed with "Internal compiler error". I am able to compile the code
> with egcs-1.1.2 though. I hope the attached file has all information
> needed. Please let me know if I missed someting.
> 
> Kind regards,
> Vladimir.
> 
> --
> Vladimir Batov
> Senior Software Engineer
> 
> Raytheon Systems Company
> Mail stop 2-2-2854
> 1001 Boston Post Rd.
> Marlborough, MA 01752 USA
> 
> Phone:  (508) 490-2761
> Fax:    (508) 490-2708
> E-mail: vladimir@res.ray.com
> 
>   ------------------------------------------------------------------------
>                         Name: bug_report.tar.gz
>    bug_report.tar.gz    Type: Unix Tape Archive (application/x-tar)
>                     Encoding: base64

-- 
Vladimir Batov
Senior Software Engineer

Raytheon Systems Company
Mail stop 2-2-2854
1001 Boston Post Rd.
Marlborough, MA 01752 USA

Phone:	(508) 490-2761
Fax:	(508) 490-2708
E-mail:	vladimir@res.ray.com


More information about the Gcc-bugs mailing list