www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 9315] New: ICE (expression.c:4249, StructLiteralExp::getField) Tupleof of nested struct literal

reply d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=9315

           Summary: ICE (expression.c:4249, StructLiteralExp::getField)
                    Tupleof of nested struct literal
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody puremagic.com
        ReportedBy: maxim maxim-fomin.ru



---
auto foo()
{
    struct S
    {
        int i;
        void bar() {  }
    }
    pragma(msg, S.init.tupleof[$-1]);
}

void main()
{

}

dmd 2.061 (actually fresh from git head);

dmd: expression.c:4249: Expression* StructLiteralExp::getField(Type*, unsigned
int): Assertion `i < elements->dim' failed.
Aborted

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Jan 14 2013
next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=9315




---
Moving struct definition outside function does not result in crash.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Jan 14 2013
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=9315


yebblies <yebblies gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |yebblies gmail.com



I get:

DMD v2.062 DEBUG
Assertion failure: 'index < dim' on line 318 in file 'root\root.h'

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Jan 14 2013
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=9315




---

 I get:
 
 DMD v2.062 DEBUG
 Assertion failure: 'index < dim' on line 318 in file 'root\root.h'
I updated my dmd to today version, and still receive original message. It happens on linux 64 bit. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Jan 14 2013
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=9315


Kenji Hara <k.hara.pg gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |pull



https://github.com/D-Programming-Language/dmd/pull/1529

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Jan 21 2013
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=9315




Commits pushed to master at https://github.com/D-Programming-Language/dmd

https://github.com/D-Programming-Language/dmd/commit/14e78697f3fd2d59c5b0bd9038c7bbf98c4c8048
fix Issue 9315 - ICE (expression.c:4249, StructLiteralExp::getField) Tupleof of
nested struct literal

https://github.com/D-Programming-Language/dmd/commit/5d38cde2e48f2149cd307cfc283d38b13ebd2c06


Issue 9315 - ICE (expression.c:4249, StructLiteralExp::getField) Tupleof of
nested struct literal

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Jan 31 2013
prev sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=9315


Kenji Hara <k.hara.pg gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED


-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Jan 31 2013