------- Comment #3 from redi at gcc dot gnu dot org 2010-07-20 17:50 ------- (In reply to comment #2) > > PS: If it were easy to do a better error message would be good.
If it were easy to do I think it would have been done by now, but feel free to open a bug report requesting it as an enhancement. I think some compilers do extra lookup and tell you it would have worked if you'd used 'typename'. > Another thing that would be good is adding something to 14.5.1.2 > on `Member classes of class templates' to say that if you use > them and try to name them you must use `typename[::]', but I > don't know how to submit a reference manual trouble report. It's not a reference manual, it's an International Standard. As long as it's self-consistent and unambiguous it's not required to be easy to read! You can report issues to comp.std.c++ or to your national standards body, but I doubt such it would be considered a defect because the rules are there, just not where you might have looked for them. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45002