diff options
Diffstat (limited to 'gdb/valops.c')
-rw-r--r-- | gdb/valops.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gdb/valops.c b/gdb/valops.c index fdd94e5..ea0a343 100644 --- a/gdb/valops.c +++ b/gdb/valops.c @@ -608,6 +608,8 @@ value_repeat (arg1, count) error ("Only values in memory can be extended with '@'."); if (count < 1) error ("Invalid number %d of repetitions.", count); + if (VALUE_REPEATED (arg1)) + error ("Cannot create artificial arrays of artificial arrays."); val = allocate_repeat_value (VALUE_TYPE (arg1), count); |