www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 7661] New: [ICE] With return of one fixed size array item

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

           Summary: [ICE] With return of one fixed size array item
           Product: D
           Version: D2
          Platform: x86
        OS/Version: Windows
            Status: NEW
          Keywords: rejects-valid
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody puremagic.com
        ReportedBy: bearophile_hugs eml.cc


--- Comment #0 from bearophile_hugs eml.cc 2012-03-07 10:53:15 PST ---
Is this a regression?


int[1] foo() {
    return [1];
}
int main() {
    return foo()[0];
}



DMD 2.059head gives:

Internal error: backend\cgcs.c 354

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Mar 07 2012
next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=7661


Walter Bright <bugzilla digitalmars.com> changed:

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


--- Comment #1 from Walter Bright <bugzilla digitalmars.com> 2013-10-04
12:31:33 PDT ---
Does not happen with 2.064 head.

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



--- Comment #2 from bearophile_hugs eml.cc 2013-10-04 14:41:40 PDT ---
(In reply to comment #1)
 Does not happen with 2.064 head.

I suggest to add a unittest that makes sure this bug keeps being fixed. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Oct 04 2013