------- Comment #1 from pinskia at gcc dot gnu dot org 2007-08-13 18:28 ------- You forgot the typename keyword: // g++ fails here: std::map<long, std::pair<T, long> >::iterator ref;
Should be: // g++ fails here: typename std::map<long, std::pair<T, long> >::iterator ref; After changing that, the program compiles. -- pinskia at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution| |INVALID http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33061