PR c/5615
* expr.h (ARGS_SIZE_TREE): Convert size.var to ssizetype.
From-SVN: r49904
+2002-02-20 Richard Henderson <rth@redhat.com>
+
+ PR c/5615
+ * expr.h (ARGS_SIZE_TREE): Convert size.var to ssizetype.
+
2002-02-20 Tom Tromey <tromey@redhat.com>
* config/fr30/fr30.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
of type ssizetype. */
#define ARGS_SIZE_TREE(SIZE) \
((SIZE).var == 0 ? ssize_int ((SIZE).constant) \
- : size_binop (PLUS_EXPR, (SIZE).var, ssize_int ((SIZE).constant)))
+ : size_binop (PLUS_EXPR, convert (ssizetype, (SIZE).var), \
+ ssize_int ((SIZE).constant)))
/* Convert the implicit sum in a `struct args_size' into an rtx. */
#define ARGS_SIZE_RTX(SIZE) \
--- /dev/null
+/* PR c/5615 */
+void f(int a, struct {int b[a];} c) {}