Bug report (template specialization)

Niall Smart njs3@doc.ic.ac.uk
Fri May 22 03:59:00 GMT 1998


On May 21, 12:51pm, Marco Manfai Yu wrote:
} Subject: Bug report (template specialization)
> Hi,
> 
>     I got a "Interal compiler error" compiling the following code
> using egcs-1.0.3a (release version) on Sparc Solaris 2.5.1 and
> Linux.

This bug appears to be fixed in egcs-current.

[snip]
> // Specialization to bypass checking if types are the same.
> template <class D> D
> F_Check<D> (D a) {
>     return a;
> }

Actually, the second line should be:

> F_Check (D a) {


Regards,

Niall



More information about the Gcc-bugs mailing list