This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: problem compiling templates /i'm not sure whether it is knownbug/
- From: Kriang Lerdsuwanakij <lerdsuwa at users dot sourceforge dot net>
- To: umbra dot tenebris at mail dot ru, gcc-bugs at gcc dot gnu dot org
- Date: Tue, 17 Dec 2002 23:08:07 +0700
- Subject: Re: problem compiling templates /i'm not sure whether it is knownbug/
- Reply-to: lerdsuwa at users dot sourceforge dot net
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