jacob-carlborg / dlp

Various tools to process the D programming language

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Assertion failure 2 synchronized this in 2 files

belka-ew opened this issue · comments

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.

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.

This commit 2d788b5 might have fixed the problem.