Hi, This patch adds a testcase for a PR that was fixed in upstream, and merged in r15-6559-g332cf038fda109.
Regression tested on x86_64-linux-gnu, and committed to mainline. Regards, Iain. --- PR d/116373 gcc/testsuite/ChangeLog: * gdc.dg/pr116373.d: New test. --- gcc/testsuite/gdc.dg/pr116373.d | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 gcc/testsuite/gdc.dg/pr116373.d diff --git a/gcc/testsuite/gdc.dg/pr116373.d b/gcc/testsuite/gdc.dg/pr116373.d new file mode 100644 index 00000000000..b58863bacf2 --- /dev/null +++ b/gcc/testsuite/gdc.dg/pr116373.d @@ -0,0 +1,8 @@ +// { dg-do compile } +int[] x; + +void foo (int[] y = x[]) {} + +void main () { + foo(); +} -- 2.43.0