www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 22593] New: ICE on overloaded constructors

https://issues.dlang.org/show_bug.cgi?id=22593

          Issue ID: 22593
           Summary: ICE on overloaded constructors
           Product: D
           Version: D2
          Hardware: All
               URL: https://forum.dlang.org/post/mqjridvdqazdryclvqei foru
                    m.dlang.org
                OS: All
            Status: NEW
          Keywords: ice
          Severity: normal
          Priority: P1
         Component: dmd
          Assignee: nobody puremagic.com
          Reporter: dfj1esp02 sneakemail.com

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

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

struct Bar{
    Foo!int foo;
}
---

--
Dec 13 2021