]> git.ipfire.org Git - thirdparty/gcc.git/commit
re PR c++/14912 (Do not print default template arguments in error messages)
authorJason Merrill <jason@redhat.com>
Wed, 29 Jul 2009 20:35:40 +0000 (16:35 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Wed, 29 Jul 2009 20:35:40 +0000 (16:35 -0400)
commit8b334f7b0967171297c275cd9c922a84508c3440
tree8967d064fe0fb79f53b568377a57adbd38c20fd3
parent9e34da8b076782c692a7e4fa6587fd19764d9b2d
re PR c++/14912 (Do not print default template arguments in error messages)

PR c++/14912
* cp-tree.h (enum tsubst_flags): Add tf_no_class_instantiations.
* error.c (count_non_default_template_args): Pass it.
* pt.c (tsubst) [TYPENAME_TYPE]: Don't complete type if it's set.

From-SVN: r150223
gcc/cp/ChangeLog
gcc/cp/cp-tree.h
gcc/cp/error.c
gcc/cp/pt.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/template/defarg13.C [new file with mode: 0644]