problem compiling templates /i'm not sure whether it is known bug/

Kriang Lerdsuwanakij lerdsuwa@users.sourceforge.net
Tue Dec 17 08:44:00 GMT 2002


> gcc32_test.cpp:5: `CSprite::data_gen' is not a type, use `typename
> Internal compiler error: Error reporting routines re-entered.
> Please submit a full bug report,
> with preprocessed source if appropriate.
> See <URL:http://www.gnu.org/software/gcc/bugs.html> for instructions.

Hi

Thanks for the report.  This is not a known bug.  But it's easy to
fix and the next release should no longer have this problem.
By the way the correct syntax in your code should be

   bool OnSegment(TSegment, typename CSprite::data_gen)
                            ^^^^^^^^

Notice the extra 'typename' keyword required.

--Kriang




More information about the Gcc-bugs mailing list