This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: problem compiling templates /i'm not sure whether it is knownbug/


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



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]