re PR c++/23789 (compilation error when template parameters have certain complexity)
authorMark Mitchell <mark@codesourcery.com>
Mon, 12 Sep 2005 22:38:34 +0000 (22:38 +0000)
committerMark Mitchell <mmitchel@gcc.gnu.org>
Mon, 12 Sep 2005 22:38:34 +0000 (22:38 +0000)
commit6f25cb3578f72310c50d4ea2d89179e169beec31
treeef9919c9c5b79ac00d1c64401535d51148119164
parentb35c082263257779ba2c3e2ae8fbeaa19bfdf374
re PR c++/23789 (compilation error when template parameters have certain complexity)

PR c++/23789
* cvt.c (perform_qualification_conversions): Don't create
unnecessary NOP_EXPRs.
* pt.c (tsubst_template_arg): Use fold_non_dependent_expr.

PR c++/23789
* g++.dg/template/nontype14.C: New test.

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