www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 7217] New: Regression(head 7c839960): [CTFE] ICE on accesing struct array field

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

           Summary: Regression(head 7c839960): [CTFE] ICE on accesing
                    struct array field
           Product: D
           Version: D1 & D2
          Platform: Other
        OS/Version: Windows
            Status: NEW
          Keywords: ice-on-valid-code
          Severity: regression
          Priority: P2
         Component: DMD
        AssignedTo: nobody puremagic.com
        ReportedBy: verylonglogin.reg gmail.com



---
It compiles with dmd 2.057. But with head commit (7c839960):
Assertion failure: '((StructLiteralExp *)newval)->ownedByCtfe' on line 6281 in
file 'interpret.c'
---
struct S { int[] arr; }

int f() {
    auto s = S();
    auto t = s.arr;
    return 0;
}

enum e = f();
---

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Jan 04 2012
parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=7217


Walter Bright <bugzilla digitalmars.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |bugzilla digitalmars.com
         Resolution|                            |FIXED



20:35:12 PST ---
https://github.com/D-Programming-Language/dmd/commit/499c3c0bb3fd34e3e9b75e3be72b984a4decaf96

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

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