It used to work before, as ldc2 1.34 was able to build that code. However, now neither ldc2 nor dmd can build that code. (This also prevents botan from being built)
Basic reproducer :
base.d
```d
module base;
class Base {
protected:
this(T)(T) {
}
}
```
super_.d
```d
module super_;
import base;
class Derived: Base {
this() {
super("Example");
}
}
````
```
$ ldc2 -i ./super_.d
./source/super.d(7): Error: constructor `base.Base.__ctor!string.this` is not accessible from module `super_`
```
Comment #1 by robert.schadek — 2024-12-13T19:37:56Z