Skip to content

dmd 2.111 regression with std.array.array #10747

Closed
2 of 2 issues completed
Closed

Description

@trikko

This used to work, now it won't compile:

import std;

struct A
{
    this(ref A rhs) { }
}

class Range
{
    A front() { return A.init; }
    void popFront() { }
    bool empty = true;
}

void main()
{
    auto a = new Range();
    a.array();
}

Sub-issues

Sub-issues

2 of 2 Issues completed
Loading 2 sub-issues

Activity

  1. ibuclaw commented on Apr 10, 2025

    @ibuclaw
    Member

    Regressing commit #8789

  2. changed the title [-]dmd 2.101 regression with std.array.array[/-] [+]dmd 2.111 regression with std.array.array[/+] on Apr 12, 2025
  3. ibuclaw commented on Apr 28, 2025

    @ibuclaw
    Member

    @0xEAB @kinke - I think the safest thing to do would be to revert the feature, then revisit in 2.112 once found compiler bugs have been resolved?

  4. kinke commented on Apr 28, 2025

    @kinke
    Contributor

    Yeah I think a revert would be good, seeing that it causes multiple problems. But I'm not optimistic that the compiler bugs are fixed soon.

  5. added a commit that references this issue on Apr 28, 2025
  6. ibuclaw commented on Apr 28, 2025

    @ibuclaw
    Member

    Revert to stable done.

  7. trikko commented on Apr 30, 2025

    @trikko
    ContributorAuthor

    Thanks Iain

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions