* decl.c (compute_array_index_type): Call mark_rvalue_use.
* c-c++-common/Wunused-var-8.c: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@159497
138bc75d-0d04-0410-961f-
82ee72b054a4
+2010-05-17 Dodji Seketeli <dodji@redhat.com>
+ Jason Merrill <jason@redhat.com>
+
+ PR c++/44108
+ * decl.c (compute_array_index_type): Call mark_rvalue_use.
+
2010-05-15 Jason Merrill <jason@redhat.com>
* cp-tree.h (TYPE_NOEXCEPT_P): New macro.
/* 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))
+2010-05-17 Dodji Seketeli <dodji@redhat.com>
+ Jason Merrill <jason@redhat.com>
+
+ PR c++/44108
+ * c-c++-common/Wunused-var-8.c: New test.
+
2010-05-17 Jakub Jelinek <jakub@redhat.com>
PR bootstrap/42347