template ctor overload Segmentation fault

vit vit at vit.vit
Sun Dec 12 11:57:43 UTC 2021


Hello, why does this code fail to compile?

```d
struct Foo(T){
     this(Rhs, this This)(scope Rhs rhs){
     }

     this(ref scope typeof(this) rhs){
     }
}


struct Bar{
	Foo!int foo;
}

void main(){
}
```

error: Segmentation fault (core dumped)


More information about the Digitalmars-d-learn mailing list