commit 0407c6ff58d0e7033de64040ce66d60a85b709e5
Author: Jason Merrill <jason@redhat.com>
Date: Thu May 26 15:00:08 2011 -0400
DR 1004
* pt.c (convert_template_argument): Don't complain about using
injected-class-name as template template argument.
@@ -5962,7 +5962,9 @@ convert_template_argument (tree parm,
tree t = maybe_get_template_decl_from_type_decl (TYPE_NAME (arg));
if (TREE_CODE (t) == TEMPLATE_DECL)
{
- if (complain & tf_warning_or_error)
+ if (cxx_dialect >= cxx0x)
+ /* OK under DR 1004. */;
+ else if (complain & tf_warning_or_error)
pedwarn (input_location, OPT_pedantic, "injected-class-name %qD"
" used as template template argument", TYPE_NAME (arg));
else if (flag_pedantic_errors)