------- Comment #2 from pinskia at gcc dot gnu dot org 2010-09-01 21:37 ------- Not to mention it is accepted with -std=c++0x as local types in C++0x can be now template arguments. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45490