Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Assertion failure 2 synchronized this in 2 files #15

Open
belka-ew opened this issue Feb 3, 2022 · 2 comments
Open

Assertion failure 2 synchronized this in 2 files #15

belka-ew opened this issue Feb 3, 2022 · 2 comments

Comments

@belka-ew
Copy link

belka-ew commented Feb 3, 2022

Consider two files:

a.d:

module a;

import std.datetime;

class A
{
    public void f()
    {
        synchronized (this)
        {
        }
    }
}

b.d:

module b;

class B
{
    public void g()
    {
        synchronized (this)
        {
        }
    }
}

Calling

./dlp infer-attributes a.d b.d 

causes

Assertion failure

with dmd 2.094.1.

@jacob-carlborg
Copy link
Owner

Are you using a pre-compiled release or have you compiled DLP from source?
It seems to work for me when I compile DLP from master.

@jacob-carlborg
Copy link
Owner

This commit 2d788b5 might have fixed the problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants