[Issue 14839] New: [REG2.068.0-b2] Class with static array of Array!T fails to compile

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Mon Jul 27 12:32:56 PDT 2015


https://issues.dlang.org/show_bug.cgi?id=14839

          Issue ID: 14839
           Summary: [REG2.068.0-b2] Class with static array of Array!T
                    fails to compile
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: regression
          Priority: P1
         Component: phobos
          Assignee: nobody at puremagic.com
          Reporter: sludwig at outerproduct.org

This used to compile up to 2.067.1:

---
import std.container.array;
class Test {
  Array!int[1] field;
}
---

On 2.068.0-b2 it yields the following errors:
test.d(2): Error: @nogc function 'test.Test.~this' cannot call non- at nogc
function 'object.TypeInfo_StaticArray.destroy'
test.d(2): Error: 'object.TypeInfo_StaticArray.destroy' is not nothrow
test.d(2): Error: destructor 'test.Test.~this' is nothrow yet may throw

The reason for the error messages is issue 14838, which is not a regression.
However some change in Phobos has made this surface only now, making it
effectively a Phobos regression.

--


More information about the Digitalmars-d-bugs mailing list