Thread overview
[Issue 9315] New: ICE (expression.c:4249, StructLiteralExp::getField) Tupleof of nested struct literal
Jan 14, 2013
Maxim Fomin
Jan 14, 2013
Maxim Fomin
Jan 14, 2013
yebblies
Jan 14, 2013
Maxim Fomin
Jan 21, 2013
Kenji Hara
Feb 01, 2013
Kenji Hara
January 14, 2013
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


--- Comment #0 from Maxim Fomin <maxim@maxim-fomin.ru> 2013-01-14 00:07:54 PST ---
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: -------
January 14, 2013
http://d.puremagic.com/issues/show_bug.cgi?id=9315



--- Comment #1 from Maxim Fomin <maxim@maxim-fomin.ru> 2013-01-14 00:10:26 PST ---
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: -------
January 14, 2013
http://d.puremagic.com/issues/show_bug.cgi?id=9315


yebblies <yebblies@gmail.com> changed:

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


--- Comment #2 from yebblies <yebblies@gmail.com> 2013-01-15 00:57:12 EST ---
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: -------
January 14, 2013
http://d.puremagic.com/issues/show_bug.cgi?id=9315



--- Comment #3 from Maxim Fomin <maxim@maxim-fomin.ru> 2013-01-14 07:42:16 PST ---
(In reply to comment #2)
> 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: -------
January 21, 2013
http://d.puremagic.com/issues/show_bug.cgi?id=9315


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

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


--- Comment #4 from Kenji Hara <k.hara.pg@gmail.com> 2013-01-21 15:01:34 PST ---
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: -------
January 31, 2013
http://d.puremagic.com/issues/show_bug.cgi?id=9315



--- Comment #5 from github-bugzilla@puremagic.com 2013-01-31 12:01:42 PST ---
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 Merge pull request #1529 from 9rnsr/fix9315

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: -------
February 01, 2013
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: -------