summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gdc.test/compilable
diff options
context:
space:
mode:
authorIain Buclaw <ibuclaw@gdcproject.org>2020-08-25 11:44:48 +0200
committerIain Buclaw <ibuclaw@gdcproject.org>2020-08-26 10:03:55 +0200
commit0f5c98b6a1a7eed281e359f40bc2e4326f2a2f56 (patch)
treeca23bf0a387a66f74738551ff1d31cb323d7e8c9 /gcc/testsuite/gdc.test/compilable
parent7421802276e737c2da297599121480833db92de9 (diff)
d: Merge upstream dmd cb4a96fae
Fixes both a bug where compilation would hang, and an issue where recursive template limits are hit too early. Reviewed-on: https://github.com/dlang/dmd/pull/11621 gcc/d/ChangeLog: * dmd/MERGE: Merge upstream dmd cb4a96fae
Diffstat (limited to 'gcc/testsuite/gdc.test/compilable')
-rw-r--r--gcc/testsuite/gdc.test/compilable/ice20092.d10
1 files changed, 10 insertions, 0 deletions
diff --git a/gcc/testsuite/gdc.test/compilable/ice20092.d b/gcc/testsuite/gdc.test/compilable/ice20092.d
new file mode 100644
index 00000000000..ff2be374bd2
--- /dev/null
+++ b/gcc/testsuite/gdc.test/compilable/ice20092.d
@@ -0,0 +1,10 @@
+void foo()
+{
+ (void[1]).init.front;
+}
+
+void front(T)(T[] a)
+{
+ static assert(is(T == void));
+}
+