OSDN Git Service

PR c++/19208
authorgiovannibajo <giovannibajo@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 21 Jan 2005 02:27:16 +0000 (02:27 +0000)
committergiovannibajo <giovannibajo@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 21 Jan 2005 02:27:16 +0000 (02:27 +0000)
commit2855a5671ff789bbffc7ad9c4a01a8d7d2d2d6e6
tree7b0f467f698c976c71cbd9304ad1d8e6c6a2f615
parent9e9ce32b6272991fc107c24bda5bb2f2a8190e23
PR c++/19208
* pt.c (fold_decl_constant_value): Always call fold_non_dependent_expr
at least once.
(tsubst): Use fold_decl_constant_value in place of a bare call to
integral_constant_value.

PR c++/19208
* g++.dg/template/array11.C: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@94006 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/cp/ChangeLog
gcc/cp/pt.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/template/array11.C [new file with mode: 0644]