template ctor overload Segmentation fault
RazvanN
razvan.nitu1305 at gmail.com
Tue Dec 14 14:40:00 UTC 2021
On Sunday, 12 December 2021 at 11:57:43 UTC, vit wrote:
> 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)
PR: https://github.com/dlang/dmd/pull/13427
More information about the Digitalmars-d-learn
mailing list