------- Comment #2 from pinskia at gcc dot gnu dot org 2006-05-11 16:07 ------- 14.3.1/2 A local type, a type with no linkage, an unnamed type or a type compounded from any of these types shall not be used as atemplate-argument for a template type-parameter.
-- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27560