diff options
author | Jason Merrill <jason@redhat.com> | 2011-05-27 00:01:56 -0400 |
---|---|---|
committer | Jason Merrill <jason@gcc.gnu.org> | 2011-05-27 00:01:56 -0400 |
commit | 5ac537d7b4983abe5eebe510c798bede816c8165 (patch) | |
tree | 5abe9440df300cee0594142fc12f8ddb9cf4921f /gcc/cp/pt.c | |
parent | 7c999b5781074ab69ec3604b13017625197872a9 (diff) | |
download | gcc-5ac537d7b4983abe5eebe510c798bede816c8165.zip gcc-5ac537d7b4983abe5eebe510c798bede816c8165.tar.gz gcc-5ac537d7b4983abe5eebe510c798bede816c8165.tar.bz2 |
DR 1004
DR 1004
* pt.c (convert_template_argument): Don't complain about using
injected-class-name as template template argument.
From-SVN: r174318
Diffstat (limited to 'gcc/cp/pt.c')
-rw-r--r-- | gcc/cp/pt.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gcc/cp/pt.c b/gcc/cp/pt.c index 3b26700..28c82b8 100644 --- a/gcc/cp/pt.c +++ b/gcc/cp/pt.c @@ -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) |