diff --git a/compiler/src/dmd/expressionsem.d b/compiler/src/dmd/expressionsem.d index a73084fefd..3502a1cecf 100644 --- a/compiler/src/dmd/expressionsem.d +++ b/compiler/src/dmd/expressionsem.d @@ -10089,7 +10089,7 @@ private extern (C++) final class ExpressionSemanticVisitor : Visitor if (length <= index) { - error(exp.loc, "array index `[%llu]` is outside array bounds `[0 .. %llu]`", index, cast(ulong)length); + error(exp.loc, "sequence index `[%llu]` is outside bounds `[0 .. %llu]`", index, cast(ulong)length); return setError(); } Expression e; diff --git a/compiler/test/fail_compilation/fail125.d b/compiler/test/fail_compilation/fail125.d index 93d176dd4e..8a4be29fbf 100644 --- a/compiler/test/fail_compilation/fail125.d +++ b/compiler/test/fail_compilation/fail125.d @@ -1,7 +1,7 @@ /* TEST_OUTPUT: --- -fail_compilation/fail125.d(15): Error: array index `[2]` is outside array bounds `[0 .. 2]` +fail_compilation/fail125.d(15): Error: sequence index `[2]` is outside bounds `[0 .. 2]` fail_compilation/fail125.d(18): Error: template instance `fail125.main.recMove!(1, a, b)` error instantiating fail_compilation/fail125.d(25): instantiated from here: `recMove!(0, a, b)` --- diff --git a/compiler/test/fail_compilation/ice12539.d b/compiler/test/fail_compilation/ice12539.d index 8fab042266..ad68f23ec2 100644 --- a/compiler/test/fail_compilation/ice12539.d +++ b/compiler/test/fail_compilation/ice12539.d @@ -1,7 +1,7 @@ /* TEST_OUTPUT: --- -fail_compilation/ice12539.d(15): Error: array index `[0]` is outside array bounds `[0 .. 0]` +fail_compilation/ice12539.d(15): Error: sequence index `[0]` is outside bounds `[0 .. 0]` --- */