Test case without dependency on std.experiment.allocator:
struct S
{
~this(){}
}
bool f()
{
try
{
return true;
}
finally
{
_ArrayDtor([S(), S()]);
}
}
void main()
{
enum b = f();
}
Comment #4 by slavo5150 — 2018-05-19T05:36:49Z
According to digger this Phobos commit caused the regression.
digger: 082e53c2fb5c28179bef45554d1b2157ffc4fdc8 is the first bad commit
commit 082e53c2fb5c28179bef45554d1b2157ffc4fdc8
Author: The Dlang Bot <[email protected]>
Date: Mon Apr 16 01:40:09 2018 +0200
phobos: Merge pull request #6411 from n8sh/allocate-zeroed
https://github.com/dlang/phobos/pull/6411
make/makeArray: take advantage of allocators with smth. faster than allocate+memset zero
merged-on-behalf-of: Sebastian Wilzbach <[email protected]>
diff --git a/phobos b/phobos
index e13e3889a..7016abafa 160000
--- a/phobos
+++ b/phobos
@@ -1 +1 @@
-Subproject commit e13e3889ac9f7dcaec8829af0fb13d60f0391f55
+Subproject commit 7016abafadcdaab1740937fab636c4085feca228
digger: Bisection completed successfully.
Comment #5 by n8sh.secondary — 2018-05-20T11:10:26Z
(In reply to Walter Bright from comment #6)
> (In reply to Mike Franklin from comment #2)
> > Attempted fix: https://github.com/dlang/dmd/pull/8260
>
> This was pulled. Does it fix it?
Yes, it appears to fix error.
Comment #8 by github-bugzilla — 2018-06-03T18:30:05Z