re PR c++/47808 ([C++0x] internal compiler error: in tsubst_copy_and_build, at cp...
authorJason Merrill <jason@redhat.com>
Fri, 11 Mar 2011 16:49:41 +0000 (11:49 -0500)
committerJason Merrill <jason@gcc.gnu.org>
Fri, 11 Mar 2011 16:49:41 +0000 (11:49 -0500)
commite8d6ec55fd0e42332ef3014312c5b139c20d0fa8
tree2f7ae9f6f328255d6116b239ee49e367364f369e
parenta758fd670cbf0935c6fa6cac3336b184f5c3c92a
re PR c++/47808 ([C++0x] internal compiler error: in tsubst_copy_and_build, at cp/pt.c:13326)

PR c++/47808
* decl.c (compute_array_index_type): Discard folding
if it didn't produce a constant.

From-SVN: r170878
gcc/cp/ChangeLog
gcc/cp/decl.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp0x/regress/array1.C [new file with mode: 0644]