From f7d57c92a2fed40099b33fa2d804861c02c95ec6 Mon Sep 17 00:00:00 2001 From: Pierre-Marie Pédrot Date: Wed, 4 Jul 2018 23:24:03 +0200 Subject: Fix #7854: Native compilation + flambda trigger SEGFAULT. We use a more abstract representation for accumulators in the native compilation scheme, that requires less fiddling with low-level implementation details. It might be slower though. --- test-suite/bugs/closed/7854.v | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 test-suite/bugs/closed/7854.v (limited to 'test-suite') diff --git a/test-suite/bugs/closed/7854.v b/test-suite/bugs/closed/7854.v new file mode 100644 index 0000000000..ab1a29b632 --- /dev/null +++ b/test-suite/bugs/closed/7854.v @@ -0,0 +1,10 @@ +Set Primitive Projections. + +CoInductive stream (A : Type) := cons { + hd : A; + tl : stream A; +}. + +CoFixpoint const {A} (x : A) := cons A x (const x). + +Check (@eq_refl _ (const tt) <<: tl unit (const tt) = const tt). -- cgit v1.2.3