]> git.ipfire.org Git - thirdparty/gcc.git/commit
pt.c (maybe_fold_nontype_arg): Use TREE_TYPE of ARG as the criterion to avoid rebuild...
authorKriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
Sat, 11 Aug 2001 12:21:17 +0000 (12:21 +0000)
committerKriang Lerdsuwanakij <lerdsuwa@gcc.gnu.org>
Sat, 11 Aug 2001 12:21:17 +0000 (12:21 +0000)
commit4d5f3fbd61ad7e6a13424fa720bda3888d6ef429
tree257e9e80272c3ee42c1a95508d54acfe64463c0e
parent91b54f7f3fcabd08aaa16079441956e7d3d8bebf
pt.c (maybe_fold_nontype_arg): Use TREE_TYPE of ARG as the criterion to avoid rebuilding expression tree...

* pt.c (maybe_fold_nontype_arg): Use TREE_TYPE of ARG as the
criterion to avoid rebuilding expression tree instead of
processing_template_decl.

* g++.dg/template/unify1.C: New test.

From-SVN: r44793
gcc/cp/ChangeLog
gcc/cp/pt.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/template/unify1.C [new file with mode: 0644]