OSDN Git Service
(root)
/
pf3gnuchains
/
gcc-fork.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
PR c++/44108
[pf3gnuchains/gcc-fork.git]
/
gcc
/
cp
/
decl.c
diff --git
a/gcc/cp/decl.c
b/gcc/cp/decl.c
index
148bcf5
..
0636aba
100644
(file)
--- a/
gcc/cp/decl.c
+++ b/
gcc/cp/decl.c
@@
-7369,6
+7369,8
@@
compute_array_index_type (tree name, tree size)
/* The size might be the result of a cast. */
STRIP_TYPE_NOPS (size);
+ size = mark_rvalue_use (size);
+
/* It might be a const variable or enumeration constant. */
size = integral_constant_value (size);
if (error_operand_p (size))