Summary: ICE - Assertion failure: default struct argument
           Product: D
           Version: 2.019
          Platform: PC
        OS/Version: Windows
            Status: NEW
          Keywords: ice-on-invalid-code, ice-on-valid-code
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]

Compiling the following code with 2.019, 2.020

struct aStruct{
        int     m_Int;

        this(int a){
                m_Int = a;

class aClass{
        void aFunc(aStruct a = aStruct(44)){

int main(string argv[]) {
        aClass a = new aClass();
        return 0;


ICE - Assertion failure: '!needThis()' on line 166 in file 'tocsym.c'

Not sure if this code is valid or invalid.


Reply via email to