diff options
Diffstat (limited to 'gcc/cp/decl.c')
-rw-r--r-- | gcc/cp/decl.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/cp/decl.c b/gcc/cp/decl.c index 3983f981367..ed03c2680f0 100644 --- a/gcc/cp/decl.c +++ b/gcc/cp/decl.c @@ -6474,6 +6474,7 @@ compute_array_index_type (tree name, tree size) name); else error ("size of array is not an integral constant-expression"); + size = integer_one_node; } else if (pedantic) { |