[Bug c++/33061] Static variable typed the member type of another class
pinskia at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Mon Aug 13 18:29:00 GMT 2007
------- 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
More information about the Gcc-bugs
mailing list