BUG REPORT: pointer to polymorphic method in generic class

Martin v. Loewis martin@loewis.home.cs.tu-berlin.de
Sat May 27 14:04:00 GMT 2000


> I'm using egcs 2.91.66

Thanks for your bug report. gcc-2.95.2 says

test.C:13: declaration of `class TYPE'
test.C:5:  shadows template parm `class TYPE'
test.C:108: parse error before `,'
test.C:109: prototype for `void MYCLASS<TYPE>::Set(...)' does not match any in class `MYCLASS<TYPE>'
test.C:53: candidate is: void MYCLASS<TYPE>::Set(unsigned int, TYPE)
test.C: In method `void MYCLASS<TYPE>::Set(...)':
test.C:109: template definition of non-template `void MYCLASS<TYPE>::Set(...)'
[more errors]

so the bug appears to be fixed.

Regards,
Martin


More information about the Gcc-bugs mailing list