digitalmars.D.bugs - [Issue 15042] New: [REG2.068] isInstanceOf fails when a template
- via Digitalmars-d-bugs (27/27) Sep 11 2015 https://issues.dlang.org/show_bug.cgi?id=15042
https://issues.dlang.org/show_bug.cgi?id=15042 Issue ID: 15042 Summary: [REG2.068] isInstanceOf fails when a template argument is an instance of the tested template Product: D Version: D2 Hardware: All OS: All Status: NEW Severity: regression Priority: P1 Component: dmd Assignee: nobody puremagic.com Reporter: Marco.Leise gmx.de I have a templated struct that emits an error when you pass in something else than "void" or another instance of itself. The following worked with 2.067, but fails with 2.068.1: ------------------------ import std.traits; struct RC(Parent) { static assert (is(Parent == void) || isInstanceOf!(RC, Parent), "This used to compile in 2.067"); } alias Regression = RC!(RC!(void)); ------------------------ --
Sep 11 2015