]> gcc.gnu.org Git - gcc.git/commit
re PR c++/19208 (Spurious error about variably modified type)
authorGiovanni Bajo <giovannibajo@gcc.gnu.org>
Fri, 21 Jan 2005 02:27:16 +0000 (02:27 +0000)
committerGiovanni Bajo <giovannibajo@gcc.gnu.org>
Fri, 21 Jan 2005 02:27:16 +0000 (02:27 +0000)
commit4ef69b8352c4307faf514fb8a8cdaf902e69accc
tree7b0f467f698c976c71cbd9304ad1d8e6c6a2f615
parent3eacd71fc13ee261874cb57705c3f2892b71be3e
re PR c++/19208 (Spurious error about variably modified type)

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.

From-SVN: r94006
gcc/cp/ChangeLog
gcc/cp/pt.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/template/array11.C [new file with mode: 0644]
This page took 0.058596 seconds and 5 git commands to generate.